Skip to content

eulerjs API / @eulerjs/core / BodyMotion

BodyMotion ​

Defined in: packages/core/src/RigidBodyState.ts:13

Where a body is and how it moves: what the world and a backend exchange every step.

Properties ​

PropertyModifierTypeDescriptionDefined in
angularVelocityreadonlyVector3Angular velocity in world space, in rad/s.packages/core/src/RigidBodyState.ts:20
positionreadonlyVector3Origin of the body frame in world space.packages/core/src/RigidBodyState.ts:15
quaternionreadonlyQuaternion-packages/core/src/RigidBodyState.ts:16
velocityreadonlyVector3Velocity of the centre of mass, in m/s.packages/core/src/RigidBodyState.ts:18

Released under the MIT License.