Skip to main content

IRigidbody2DMethods

Trait IRigidbody2DMethods 

Source
pub trait IRigidbody2DMethods: IRigidbody2D {
    // Provided methods
    fn get_velocity(self) -> Vector2 { ... }
    fn get_mass(self) -> f32 { ... }
    fn ctor(self) { ... }
    fn get_velocity_injected(self) -> Vector2 { ... }
}

Provided Methods§

Source

fn get_velocity(self) -> Vector2

get_velocity() overload

Source

fn get_mass(self) -> f32

get_mass() overload

Source

fn ctor(self)

.ctor() overload

Source

fn get_velocity_injected(self) -> Vector2

get_velocity_Injected(*mutcrate::unity_engine::vector2::Vector2) overload

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<__T: IRigidbody2D> IRigidbody2DMethods for __T

Available on crate feature unity_engine-rigidbody2d only.