[−][src]Trait amethyst_physics::servers::WorldPhysicsServerTrait
This is the interface that contains all functionalities to manipulate the world.
The object that implement this interface is wrapped by WorldPhysicsServer
.
It's stored as resource in the world.
Required methods
fn step(&self)
This function is responsible to perform the stepping of the world. This must be called at a fixed rate
fn set_time_step(&self, delta_time: N)
Set the time step
fn set_gravity(&self, gravity: &Vector3<N>)
Set world gravity
fn gravity(&self) -> Vector3<N>
get world gravity