hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
26 lines (14 loc) • 650 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [RigidBody](./server.rigidbody.md) > [removeFromSimulation](./server.rigidbody.removefromsimulation.md)
## RigidBody.removeFromSimulation() method
Removes the rigid body from the simulation it belongs to.
**Signature:**
```typescript
removeFromSimulation(): void;
```
**Returns:**
void
## Remarks
\*\*Child colliders:\*\* Also removes all child colliders from the simulation.
\*\*Side effects:\*\* Unregisters the rigid body and all attached colliders.
\*\*Category:\*\* Physics