SCNPhysicsBody.ApplyForce Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| ApplyForce(SCNVector3, SCNVector3, Boolean) |
Applies the specified force or impulse, in Newtons or Newton-seconds, through the specified location. |
| ApplyForce(SCNVector3, Boolean) |
Applies the specified force or impulse, in Newtons or Newton-seconds, through the center of mass of the physics body. |
ApplyForce(SCNVector3, SCNVector3, Boolean)
Applies the specified force or impulse, in Newtons or Newton-seconds, through the specified location.
[Foundation.Export("applyForce:atPosition:impulse:")]
public virtual void ApplyForce(SceneKit.SCNVector3 direction, SceneKit.SCNVector3 position, bool impulse);
abstract member ApplyForce : SceneKit.SCNVector3 * SceneKit.SCNVector3 * bool -> unit
override this.ApplyForce : SceneKit.SCNVector3 * SceneKit.SCNVector3 * bool -> unit
Parameters
- direction
- SCNVector3
- position
- SCNVector3
- impulse
- Boolean
- Attributes
Remarks
If impulse is true, then direction is interpreted as an impulse and is applied. Otherwise, direction is applied as a force for the duration of the time step.
Applies to
ApplyForce(SCNVector3, Boolean)
Applies the specified force or impulse, in Newtons or Newton-seconds, through the center of mass of the physics body.
[Foundation.Export("applyForce:impulse:")]
public virtual void ApplyForce(SceneKit.SCNVector3 direction, bool impulse);
abstract member ApplyForce : SceneKit.SCNVector3 * bool -> unit
override this.ApplyForce : SceneKit.SCNVector3 * bool -> unit
Parameters
- direction
- SCNVector3
- impulse
- Boolean
- Attributes
Remarks
If impulse is true, then direction is interpreted as an impulse and is applied. Otherwise, direction is applied as a force for the duration of the time step.