#[repr(C)]pub struct PhysicsServer2DExtensionMotionResult {
pub travel: Vector2,
pub remainder: Vector2,
pub collision_point: Vector2,
pub collision_normal: Vector2,
pub collider_velocity: Vector2,
pub collision_depth: f32,
pub collision_safe_fraction: f32,
pub collision_unsafe_fraction: f32,
pub collision_local_shape: i32,
pub collider_id: ObjectId,
pub collider: Rid,
pub collider_shape: i32,
}
Expand description
Fields§
§travel: Vector2
§remainder: Vector2
§collision_point: Vector2
§collision_normal: Vector2
§collider_velocity: Vector2
§collision_depth: f32
§collision_safe_fraction: f32
§collision_unsafe_fraction: f32
§collision_local_shape: i32
§collider_id: ObjectId
§collider: Rid
§collider_shape: i32
Trait Implementations§
§impl Clone for PhysicsServer2DExtensionMotionResult
impl Clone for PhysicsServer2DExtensionMotionResult
§fn clone(&self) -> PhysicsServer2DExtensionMotionResult
fn clone(&self) -> PhysicsServer2DExtensionMotionResult
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl PartialEq for PhysicsServer2DExtensionMotionResult
impl PartialEq for PhysicsServer2DExtensionMotionResult
§fn eq(&self, other: &PhysicsServer2DExtensionMotionResult) -> bool
fn eq(&self, other: &PhysicsServer2DExtensionMotionResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PhysicsServer2DExtensionMotionResult
Auto Trait Implementations§
impl Freeze for PhysicsServer2DExtensionMotionResult
impl RefUnwindSafe for PhysicsServer2DExtensionMotionResult
impl Send for PhysicsServer2DExtensionMotionResult
impl Sync for PhysicsServer2DExtensionMotionResult
impl Unpin for PhysicsServer2DExtensionMotionResult
impl UnwindSafe for PhysicsServer2DExtensionMotionResult
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)