Skip to main content

DefaultEntityPush

Trait DefaultEntityPush 

Source
pub trait DefaultEntityPush: Entity {
    // Provided method
    fn push_snapshot(&self, known_pushable: bool) -> Option<EntityPushSnapshot> { ... }
}
Expand description

Vanilla push and cramming behavior with no overrides. Implementors only read state, only write velocity and the velocity sync flag, and never re-enter the entity manager. Entities that override contact, velocity or cramming hooks must not opt in.

Provided Methods§

Source

fn push_snapshot(&self, known_pushable: bool) -> Option<EntityPushSnapshot>

Push inputs for one contact, or None while riding. known_pushable skips the is_pushable check when the selector has already passed this entity.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§