sm.debris
Debris is a visual-only object that is itself affected by physics, but does not affect other objects it touches.
It is intended to visualize an object visually breaking into pieces, which will disappear after some amount of time.
Functions
createDebris
sm.debris.createDebris(uuid, position, rotation, velocity, angularVelocity, color, time)
Client-Only
Create visual debris of a Shape from its Uuid.
The debris collides with and is affected by world objects, but does not have an impact on them.
Parameters:
uuid(Uuid): The shape UUID.position(Vec3): The position.rotation(Quat): The rotation.velocity(Vec3, optional): The linear velocity. Defaults to zero.angularVelocity(Vec3, optional): The angular velocity in radians per second around the axes (x,y,z). Defaults to zero.color(Color): The color. Defaults to the shape's default color.time(number): The time after which the debris disappears. Defaults to 10 seconds.