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

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.

Reference to the lookup table for friction and restitution coefficients.

Mutable reference to the lookup table for friction and restitution coefficients.

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.

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.

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.

Adds a body to the world.

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 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 reference to the specified collider.

Returns None if the handle does not correspond to a collider in this 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 body the specified collider is attached to.

Gets the anchor attaching this collider to a body or body part.

An iterator through all the colliders on this collision world.

An iterator through all the bodies on this world.

A mutable iterator through all the bodies on this world.

An iterator through all the bodies with the given name.

An iterator through all the bodies with the given name.

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]

Auto Trait Implementations

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

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

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 

impl<T> Same for T

Should always be Self