pub struct Object { /* private fields */ }
Implementations§
Source§impl Object
impl Object
Sourcepub fn with_motion(
self,
velocity: Velocity,
rotation_speed: f32,
acceleration: f32,
rotation_acceleration: f32,
) -> Self
pub fn with_motion( self, velocity: Velocity, rotation_speed: f32, acceleration: f32, rotation_acceleration: f32, ) -> Self
pub fn get_session_id(&self) -> i32
pub fn get_class_id(&self) -> i32
pub fn get_position(&self) -> &Position
pub fn get_x_position(&self) -> f32
pub fn get_y_position(&self) -> f32
pub fn get_velocity(&self) -> &Velocity
pub fn get_x_velocity(&self) -> f32
pub fn get_y_velocity(&self) -> f32
pub fn get_acceleration(&self) -> f32
Sourcepub fn get_rotation_speed(&self) -> f32
pub fn get_rotation_speed(&self) -> f32
Returns the rotation speed in turn per seconds
Sourcepub fn get_rotation_acceleration(&self) -> f32
pub fn get_rotation_acceleration(&self) -> f32
Returns the rotation acceleration in turn per seconds squared
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Object
impl RefUnwindSafe for Object
impl Send for Object
impl Sync for Object
impl Unpin for Object
impl UnwindSafe for Object
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more