Enum nphysics2d::object::WorldObject [] [src]

pub enum WorldObject<N: Real> {
    RigidBody(RigidBodyHandle<N>),
    Sensor(SensorHandle<N>),
}

An object that has been added to a World.

Variants

A rigid body handle.

A sensor handle.

Methods

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

[src]

The unique identifier a rigid body would have if it was wrapped on a WorldObject.

This identifier remains unique and will not change as long as rb is kept alive in memory.

[src]

The unique identifier a sensor would have if it was wrapped on a WorldObject.

This identifier remains unique and will not change as long as s is kept alive in memory.

[src]

Whether or not this is a rigid body.

[src]

Whether or not this is a sensor.

[src]

Unwraps this object as a sensor or fails.

[src]

Unwraps this object as a rigid body or fails.

[src]

Returns a unique id for this world object.

[src]

Borrows this world object.

[src]

Borrows this world object as a sensor.

[src]

Borrows this world object as a rigid body.

[src]

Mutably borrows this world object.

[src]

Mutably borrows this world object as a sensor.

[src]

Mutably borrows this world object as a rigid body.

Trait Implementations

impl<N: Clone + Real> Clone for WorldObject<N>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more