Struct turbine::world::World [] [src]

pub struct World {
    pub mask: Vec<Mask>,
    pub init: Physics,
    pub prev: Physics,
    pub current: Physics,
    pub next: Physics,
    pub aabb: Vec<AABB>,
    pub name: Vec<Option<Arc<String>>>,
}

Stores the world data.

Fields

The active components per entity.

The initial state of physics.

The previous state.

The current state.

The next state.

An AABB relative to position.

An optional name describing the entity. Multiple entities can share the same name.

Methods

impl World
[src]

[src]

Returns a new World.

[src]

Swaps the physical state such that previous is now next.

[src]

Finds the first free entity slot.

[src]

Sets position with no velocity.

[src]

Adds a new entity. Marks the entity as alive and selects it.