Struct nphysics3d::world::World[][src]

pub struct World<N: Real> { /* fields omitted */ }

The physics world.

Methods

impl<N: Real> World<N>
[src]

Creates a new physics world with default parameters.

The ground body is automatically created and added to the world without any colliders attached.

Prediction distance used internally for collision detection.

Disable the perfomance counters that measure various times and statistics during a timestep.

Enable the perfomance counters that measure various times and statistics during a timestep.

Retrieve the perfomance counters that measure various times and statistics during a timestep.

Set the contact model for all contacts.

Retrieve a reference to the parameters for the integration.

Retrieve a mutable reference to the parameters for the integration.

Retrieve the timestep used for the integration.

Sets the timestep used for the integration.

Activate the given body.

Add a constraints to the physics world and retrieves its handle.

Get a reference to the specified constraint.

Get a mutable reference to the specified constraint.

Important traits for Box<R>

Remove the specified constraint from the world.

Remove the specified collider from the world.

Add a force generator to the world.

Retrieve a reference to the specified force generator.

Retrieve a mutable reference to the specified force generator.

Important traits for Box<R>

Remove the specified force generator from the world.

Set the gravity.

The gravity applied to all dynamic bodies.

Execute one time step of the physics simulation.

Remove the specified bodies.

Remove several links of a single multibody.

Panics if not all links belong to the same multibody.

Add a rigid body to the world and retrieve its handle.

Add a multibody link to the world and retrieve its handle.

Add a collider to the world and retrieve its handle.

Add a sensor to the world and retrieve its handle.

Get a reference to the specified body part.

Panics if a body part with the given handle was not found.

Get a mutable reference to the specified body part.

Panics if a body part with the given handle was not found.

Get a reference to the specified body.

Get a mutable reference to the specified body.

Get a reference to the multibody containing the specified multibody link.

Returns None if the handle does not correspond to a multibody link in this world.

Get a mutable reference to the multibody containing the specified multibody link.

Returns None if the handle does not correspond to a multibody link in this world.

Get a reference to the specified multibody link.

Returns None if the handle does not correspond to a multibody link in this world.

Get a mutable reference to the specified multibody link.

Returns None if the handle does not correspond to a multibody link in this world.

Get a reference to the specified rigid body.

Returns None if the handle does not correspond to a rigid body in this world.

Get a mutable reference to the specified rigid body.

Returns None if the handle does not correspond to a rigid body in this world.

Reference to the underlying collision world.

Mutable reference to the underlying collision world.

Get a mutable reference to the specified collider.

Returns None if the handle does not correspond to a collider in this world.

Gets the handle of the parent body the specified collider is attached to.

An iterator through all the colliders on this collision world.

An iterator through all the contact events generated during the last execution of self.step().

An iterator through all the proximity events generated during the last execution of self.step().

Trait Implementations

impl<N: Real> Default for World<N>
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl<N> Send for World<N> where
    N: Scalar

impl<N> Sync for World<N> where
    N: Scalar