[][src]Trait physx::rigid_static::RigidStatic

pub trait RigidStatic: Class<PxRigidStatic> + RigidActor + UserData {
    pub fn new(
        physics: &mut impl Physics,
        transform: PxTransform,
        geometry: &impl Class<PxGeometry>,
        material: &mut <Self::Shape as Shape>::Material,
        shape_transform: PxTransform,
        user_data: Self::UserData
    ) -> Option<Owner<Self>> { ... }
pub unsafe fn from_raw(
        ptr: *mut PxRigidStatic,
        user_data: Self::UserData
    ) -> Option<Owner<Self>> { ... }
pub fn get_user_data(&self) -> &Self::UserData { ... }
pub fn get_user_data_mut(&mut self) -> &mut Self::UserData { ... }
pub fn get_concrete_type_name(&self) -> Option<&str> { ... } }

Provided methods

pub fn new(
    physics: &mut impl Physics,
    transform: PxTransform,
    geometry: &impl Class<PxGeometry>,
    material: &mut <Self::Shape as Shape>::Material,
    shape_transform: PxTransform,
    user_data: Self::UserData
) -> Option<Owner<Self>>
[src]

Create a new RigidStatic.

pub unsafe fn from_raw(
    ptr: *mut PxRigidStatic,
    user_data: Self::UserData
) -> Option<Owner<Self>>
[src]

Safety

Owner's own the pointer they wrap, using the pointer after dropping the Owner, or creating multiple Owners from the same pointer will cause UB. Use into_ptr to retrieve the pointer and consume the Owner without dropping the pointee. Initializes user data.

pub fn get_user_data(&self) -> &Self::UserData[src]

Get the user data.

pub fn get_user_data_mut(&mut self) -> &mut Self::UserData[src]

Get the user data.

pub fn get_concrete_type_name(&self) -> Option<&str>[src]

Get the name of the real type referenced by this pointer, or None if the returned string is not valid

Loading content...

Implementors

impl<S, Geom: Shape> RigidStatic for PxRigidStatic<S, Geom>[src]

Loading content...