CollisionPiece
Defined in: sdk/src/runtime/collisionGeometry.ts:17
One piece of static geometry, in world units.
Properties
Section titled “Properties”friction
Section titled “friction”friction:
number
Defined in: sdk/src/runtime/collisionGeometry.ts:26
indices
Section titled “indices”indices:
Uint32Array
Defined in: sdk/src/runtime/collisionGeometry.ts:25
Three a triangle, counter-clockwise seen from the side that faces out.
layer:
number
Defined in: sdk/src/runtime/collisionGeometry.ts:29
The collision layer (0 to 15).
origin
Section titled “origin”origin: readonly [
number,number,number]
Defined in: sdk/src/runtime/collisionGeometry.ts:21
Where the piece’s positions are measured from, in the world.
owner:
number
Defined in: sdk/src/runtime/collisionGeometry.ts:19
The entity the piece belongs to: what a contact or a ray that hits it reports.
positions
Section titled “positions”positions:
Float32Array
Defined in: sdk/src/runtime/collisionGeometry.ts:23
vertexCount * 3 floats, relative to origin.
restitution
Section titled “restitution”restitution:
number
Defined in: sdk/src/runtime/collisionGeometry.ts:27