BodySpec record
public sealed record BodySpec What IPhysicsWorld.Add makes a body from: its collision, and everything else as overrides with defaults. Set what you need with with or an initialiser and leave the rest.
var crate = new BodySpec(collision)
{
Position = new MapVector(0, 1, 0),
Velocity = new MapVector(0, 0, -4),
Mass = 30
};
- Assembly
- EvilEngine.Api
- Commit
- 4ff877b1