pub struct RigidBodyBuilder { /* private fields */ }
Implementations§
Source§impl RigidBodyBuilder
impl RigidBodyBuilder
pub fn new() -> Self
pub fn position(self, position: Vec2) -> Self
pub fn gravity_mod(self, gravity_mod: f32) -> Self
pub fn rotation(self, rotation: f32) -> Self
pub fn scale(self, scale: Vec2) -> Self
pub fn acceleration(self, acceleration: Vec2) -> Self
pub fn velocity_request(self, velocity_request: Vec2) -> Self
pub fn calculated_velocity(self, calculated_velocity: Vec2) -> Self
pub fn colliders(self, colliders: Vec<ColliderHandle>) -> Self
pub fn connected_joints(self, connected_joints: Vec<JointHandle>) -> Self
pub fn user_data(self, user_data: u128) -> Self
pub fn body_type(self, body_type: RigidBodyType) -> Self
pub fn build(self) -> RigidBody
Auto Trait Implementations§
impl Freeze for RigidBodyBuilder
impl RefUnwindSafe for RigidBodyBuilder
impl Send for RigidBodyBuilder
impl Sync for RigidBodyBuilder
impl Unpin for RigidBodyBuilder
impl UnwindSafe for RigidBodyBuilder
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more