Skip to main content

RigidBody

Client Server

Metamethods​

boolean __eq(RigidBody a, RigidBody b)​

Methods​

nil AddImpulse(Vec3 atPointM, Vec3 impulse)​

nil AddAngularImpulse(Vec3 impulse)​

nil AddForce(Vec3 force)​

nil AddTorque(Vec3 torque)​

nil AddAcceleration(Vec3 acceleration)​

nil AddAngularAcceleration(Vec3 acceleration)​

PhysSimEvent[] GetCollisions(PhysSimEventType? eventType)​

Properties​

boolean active​

boolean activeInHierarchy​

Object object​

Object obj​

boolean isDestroyed​

string type​

boolean onePerObject​

Vec3 velocity​

Vec3 angularVelocity​

number mass​

boolean massByObject​

number volume​

Vec3 inertia​

boolean inertiaByObject​

number inertiaMul​

boolean sleeping​

boolean startSleeping​

boolean allowSleeping​

boolean simulate​

Vec3 centerOfMass​

number gravityScale​