Scripting API
Scripting API
Rigidbody3D
Struct in Abyss.Physics3D, from Abyss.Physics3D.
A body Physics 3D moves: by gravity, by what it meets and by what code does to it, its colliders — a BoxCollider3D and the others on the same entity, and those on the entities under it that have no Rigidbody 3D nearer — what it meets with. Its place is the entity's Transform; its velocities are what the last step left, and setting them is what code moves it by.
public struct Rigidbody3DRemarks
Forces, impulses and a move to a place are asked of Physics3D, which applies them at the next step. An entity with colliders and no body at or above it is ground: it does not move. A child with a Rigidbody 3D of its own is a body of its own.
Fields
Type
public BodyType3D TypeHow it moves.
UseAutoMass
public bool UseAutoMassWhether its mass is worked out from its colliders, each its volume times its Density, rather than Rigidbody3D.Mass, which the step then says it was.
Mass
public float MassIts mass, in kilograms, whatever its colliders' sizes; what they make it where it uses auto mass.
GravityScale
public float GravityScaleHow much of gravity pulls it: 1 all, 0 none, -1 upwards.
LinearDamping
public float LinearDampingHow quickly its moving slows of itself, as in air.
AngularDamping
public float AngularDampingHow quickly its turning slows of itself.
Freeze
public Freeze3D FreezeWhich ways it never moves or turns, along and about the world's axes: a character that stays upright never turns about X or Z.
Interpolate
public Interpolation3D InterpolateWhether it is drawn between fixed steps.
CollisionDetection
public CollisionDetection3D CollisionDetectionHow it is kept from passing through what it meets.
LinearVelocity
public Vector3 LinearVelocityHow fast it moves, in meters a second: what the last step left, and what code sets to move it.
AngularVelocity
public Vector3 AngularVelocityHow fast it turns about each of the world's axes, in degrees a second, anticlockwise looking down the axis.
