Interface PhysicsAggregateParameters
interface PhysicsAggregateParameters {
center?: Vector3;
extents?: Vector3;
friction?: number;
isTriggerShape?: boolean;
mass: number;
mesh?: Mesh;
pointA?: Vector3;
pointB?: Vector3;
radius?: number;
restitution?: number;
rotation?: Quaternion;
startAsleep?: boolean;
}
center?: Vector3;
extents?: Vector3;
friction?: number;
isTriggerShape?: boolean;
mass: number;
mesh?: Mesh;
pointA?: Vector3;
pointB?: Vector3;
radius?: number;
restitution?: number;
rotation?: Quaternion;
startAsleep?: boolean;
}
Index
Properties
Optionalcenter
mesh local center
Optionalextents
Extents for box
Optionalfriction
friction?: number
The friction of the physics aggregate
Optionalis Trigger Shape
isTriggerShape?: boolean
If true, mark the created shape as a trigger shape
mass
mass: number
The mass of the physics aggregate
Optionalmesh
mesh object. Used for mesh and convex hull aggregates.
Optionalpoint A
Starting point for cylinder/capsule
Optionalpoint B
Ending point for cylinder/capsule
Optionalradius
radius?: number
Radius for sphere, cylinder and capsule
Optionalrestitution
restitution?: number
The coefficient of restitution of the physics aggregate
Optionalrotation
Orientation for box
Optionalstart Asleep
startAsleep?: boolean
Physics engine will try to make this body sleeping and not active
The interface for the physics aggregate parameters