SCNPhysicsBody.ApplyTorque(SCNVector4, Boolean) 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.
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.