Interface PhysicsAggregateOptions
interface PhysicsAggregateOptions {
center?: Vec3;
extents?: Vec3;
friction?: number;
isTriggerShape?: boolean;
mass: number;
pointA?: Vec3;
pointB?: Vec3;
radius?: number;
restitution?: number;
rotation?: Quat;
shape?: PhysicsShape;
startAsleep?: boolean;
}
center?: Vec3;
extents?: Vec3;
friction?: number;
isTriggerShape?: boolean;
mass: number;
pointA?: Vec3;
pointB?: Vec3;
radius?: number;
restitution?: number;
rotation?: Quat;
shape?: PhysicsShape;
startAsleep?: boolean;
}
Index
Properties
Optionalcenter
Optionalextents
Optionalfriction
friction?: number
Optionalis Trigger Shape
isTriggerShape?: boolean
mass
mass: number
Optionalpoint A
Optionalpoint B
Optionalradius
radius?: number
Optionalrestitution
restitution?: number
Optionalrotation
Optionalshape
Optional pre-built shape. When provided, it is used directly and the
primitive-shape build path is skipped. This lets callers supply
mesh/convex-hull shapes (built via createPhysicsShape) without pulling
the mesh-shape code into createPhysicsAggregate itself.
Optionalstart Asleep
startAsleep?: boolean
Options for
createPhysicsAggregate: mass, material (friction/restitution), and optional shape geometry overrides.