sm.debris
Debris are visual objects that have no impact on any other object.
Functions
createDebris
sm.debris.createDebris( uuid, position, rotation, velocity, angularVelocity, color, time )
Client-Only
Create visual debris of a shape from its uuid, that collides with world objects but does not have an impact on them.
Arguments:- uuid[ Uuid ]: The shape uuid.
- position[ Vec3 ]: The position.
- rotation[ Quat ]: The rotation.
- velocity[ Vec3 ]: The linear velocity.
- angularVelocity[ Vec3 ]: 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.