#[non_exhaustive]pub enum ContactPartner {
Body(BodyId),
Static(StaticMeshId),
}Expand description
What lies on the far side of a Contact’s normal. Contact 法线另一侧的东西。
A Contact is always anchored on a Body; the other side is either a second Body or a piece of Static geometry, which has no Body of its own. 一个 Contact 总以某个 Body 为一端;另一端要么是另一个 Body,要么是一块本身没有 Body 的 Static geometry。
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Body(BodyId)
Another Body. 另一个 Body。
Static(StaticMeshId)
A registered piece of Static geometry. 一块已注册的 Static geometry。
Trait Implementations§
Source§impl Clone for ContactPartner
impl Clone for ContactPartner
impl Copy for ContactPartner
Source§impl Debug for ContactPartner
impl Debug for ContactPartner
impl Eq for ContactPartner
Source§impl PartialEq for ContactPartner
impl PartialEq for ContactPartner
impl StructuralPartialEq for ContactPartner
Auto Trait Implementations§
impl Freeze for ContactPartner
impl RefUnwindSafe for ContactPartner
impl Send for ContactPartner
impl Sync for ContactPartner
impl Unpin for ContactPartner
impl UnsafeUnpin for ContactPartner
impl UnwindSafe for ContactPartner
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