BreakableData
Defined in: sdk/src/breakable/breakable.ts:43
Properties
Section titled “Properties”breakImpulse
Section titled “breakImpulse”breakImpulse:
number
Defined in: sdk/src/breakable/breakable.ts:60
A hit at least this hard breaks it: the speed at which the two came together times the mass they met with, in
kilograms by world units a second. A 1 kg stone landing at 10 m/s, in a scene of 100 units to the metre, is
1000; a pebble of 50 g at the same speed is 50. A thing that falls meets the floor with its own mass. 0 breaks it
only when broken is raised. It needs a collider of its own to be hit at all.
broken
Section titled “broken”broken:
boolean
Defined in: sdk/src/breakable/breakable.ts:47
Raise it and the thing breaks; lower it and it is whole again.
burst:
number
Defined in: sdk/src/breakable/breakable.ts:49
How fast the pieces leave, in world units a second, straight out from origin. 0 lets them fall where they are.
enabled
Section titled “enabled”enabled:
boolean
Defined in: sdk/src/breakable/breakable.ts:61
lifetime
Section titled “lifetime”lifetime:
number
Defined in: sdk/src/breakable/breakable.ts:53
Seconds the pieces last before they are taken away. 0 keeps them.
origin
Section titled “origin”origin:
Vec3
Defined in: sdk/src/breakable/breakable.ts:51
Where it is struck, from its own origin: the pieces fly away from here.
pieces
Section titled “pieces”pieces:
string
Defined in: sdk/src/breakable/breakable.ts:45
The prefab of its pieces, as a model’s fracture step writes it.