Edit

Share via


SCNPhysicsBody.ApplyTorque(SCNVector4, Boolean) Method

Definition

Applies the specified torque or angular impulse through the center of mass of the physics body.

[Foundation.Export("applyTorque:impulse:")]
public virtual void ApplyTorque (SceneKit.SCNVector4 torque, bool impulse);
abstract member ApplyTorque : SceneKit.SCNVector4 * bool -> unit
override this.ApplyTorque : SceneKit.SCNVector4 * bool -> unit

Parameters

torque
SCNVector4
impulse
Boolean
Attributes

Remarks

If impulse is true, then torque is interpreted as an angular impulse and is applied. Otherwise, torque is applied as a torque for the duration of the time step.

Applies to