Experimental:Body Class

From Derivative
Jump to: navigation, search

The Body Class describes the contents of a single body within an Actor COMP. The Actor COMP has a list of all its bodies.


Members[edit]

indexint (Read Only):

The index of this Body in its Actor COMP (owner).

ownerOP (Read Only):

The Actor COMP to which this body belongs.

rotatetdu.Vector :

Get or set the body's rotation in world space.

translatetdu.Position :

Get or set the body's translation in world space.

angularVelocitytdu.Vector :

Get or set the body's angular velocity.

linearVelocitytdu.Vector :

Get or set the body's linear velocity.

Methods[edit]

applyImpulseForce(force, relPos=None)None:

Applies impulse force to a body in a Bullet simulation.

  • force - The impulse force to apply to the body.
  • relPos (Keyword, Optional) - If specified, applies the force at the relative position, otherwise applied at (0,0,0).

applyTorque(torque)None:

Applies torque to a body in a Bullet simulation. The torque will only be applied for a single frame.

  • torque - The torque to apply to the body this frame.

applyImpulseTorque(torque)None:

Applies impulse torque to a body in a Bullet simulation.

  • torque - The impulse torque to apply to the body.

applyForce(force, relPos=None)None:

Applies force to a body in a Bullet simulation. The force will only be applied for a single frame.

  • force - The force to apply to the body this frame.
  • relPos (Keyword, Optional) - If specified, applies the force at the relative position, otherwise applied at (0,0,0).


Any of the procedural data operators. OPs do all the work in TouchDesigner. They "cook" and output data to other OPs, which ultimately result in new images, data and audio being generated. See Node.