JJ_BodySettings class final
How a body is made.
- Inheritance
- Implemented types
- Available extensions
Constructors
Properties
-
address
→ Pointer<
T> -
Available on T, provided by the StructAddress extension
The memory address of the underlying data.no setter - allowedDofs ↔ int
-
Jolt's EAllowedDOFs bits; 0 means all six.
getter/setter pair
- allowSleeping ↔ bool
-
Whether it may fall asleep when it comes to rest.
getter/setter pair
- angularDamping ↔ double
-
How fast its spin dies away by itself.
getter/setter pair
-
angularVelocity
↔ Array<
Float> -
Starting angular velocity, rad/s.
getter/setter pair
- enhancedInternalEdgeRemoval ↔ bool
-
Jolt's enhanced internal edge removal: smoother sliding over the
inner edges of meshes and compound shapes, at some cost.
getter/setter pair
- friction ↔ double
-
Friction coefficient. A contact mixes its two bodies' by Jolt's rule,
the geometric mean.
getter/setter pair
- gravityFactor ↔ double
-
How much of the world's gravity pulls it: 1 all, 0 none. Settings
filled with zeros leave it at 0, so set it.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isSensor ↔ bool
-
A sensor reports bodies that enter and leave it
(JJ_EVENT_SENSOR_BEGIN / _END) and collides with nothing.
getter/setter pair
- layer ↔ int
-
Collision layer, 0-15.
getter/setter pair
- linearDamping ↔ double
-
How fast its motion dies away by itself.
getter/setter pair
-
linearVelocity
↔ Array<
Float> -
Starting velocity, m/s.
getter/setter pair
- mass ↔ double
-
Mass in kg; 0 or less computes it from the shape (density 1000).
getter/setter pair
- motionQuality ↔ int
-
0 discrete, 1 linear cast (continuous collision for fast bodies).
getter/setter pair
- motionType ↔ int
-
JJ_MOTION_*.
getter/setter pair
-
position
↔ Array<
Float> -
Where it starts, in metres.
getter/setter pair
- restitution ↔ double
-
Bounciness, 0-1. A contact mixes its two bodies' as
JJ_WorldSettings.restitutionCombine says.
getter/setter pair
-
rotation
↔ Array<
Float> -
Unit quaternion x y z w.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- userData ↔ int
-
Kept on the Jolt body as its user data.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited