SKAction.CreateChangeMassTo(Single, Double) Method

Definition

Sets to newMass the Mass of a SKPhysicsBody by the specified amount.

[Foundation.Export("changeMassTo:duration:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public static SpriteKit.SKAction CreateChangeMassTo (float newMass, double duration);
static member CreateChangeMassTo : single * double -> SpriteKit.SKAction

Parameters

newMass
Single
duration
Double

Returns

Attributes

Applies to