IPhysicsWorld interface
public interface IPhysicsWorld A session’s one physics world: its gravity, its bodies, and adding and removing them. It has no Godot in it, so the same calls work on a dedicated server.
The host steps it, never a Plugin. Each tick, 0.015 s, it takes one step in the tick’s Physics phase after the players move. The map’s own colliders are already in it as static bodies, and they aren’t in Bodies.
A Plugin reaches it through its context’s Physics, which removes only what that Plugin added and takes it away when the Plugin unloads. The host’s own spawn command, a death that leaves a ragdoll and just map-shot --spawn add bodies and joints to it too. A body added through the world is simulated and traced against but not drawn: spawn a prop for one players see.
var drum = world.Add(new BodySpec(collision)
{
Position = new MapVector(0, 2, 0),
Orientation = Orientation.Yaw(45)
});
drum.Push(new MapVector(0, 0, -150), drum.Position);
- Assembly
- EvilEngine.Api
- Commit
- 4ff877b1