Instance Property

usesDefaultMomentOfInertia

A Boolean value that determines whether SceneKit automatically calculates the body’s moment of inertia or allows setting a custom value.

Declaration

@property(nonatomic) BOOL usesDefaultMomentOfInertia;

Discussion

A body’s moment of inertia determines how it responds to torques (that is, forces with a rotational component).

If this property is YES (the default), SceneKit automatically determines the body’s moment of inertia based on its shape and mass. Set this property to NO and use the momentOfInertia property to define a custom moment of inertia (for example, to model an object of non-uniform density).

See Also

Defining a Body’s Physical Properties

mass

The mass of the body, in kilograms.

charge

The electric charge of the body, in coulombs.

friction

The body’s resistance to sliding motion.

rollingFriction

The body’s resistance to rolling motion.

restitution

A factor that determines how much kinetic energy the body loses or gains in collisions.

damping

A factor that reduces the body’s linear velocity.

angularDamping

A factor that reduces the body’s angular velocity.

momentOfInertia

The body’s moment of inertia, expressed in the local coordinate system of the node that contains the body.

centerOfMassOffset

The position of the body’s center of mass relative to its local coordinate origin.