#![warn(clippy::all)]
use super::{px_type::*, rigid_actor::RigidActor};
use physx_macros::*;
use physx_sys::{PxRigidStatic, PxRigidStatic_getConcreteTypeName};
#[physx_type(inherit = "RigidActor")]
impl RigidStatic {
pub fn new(px_link: *mut PxRigidStatic) -> Self {
let mut _self = Self::from_ptr(px_link);
_self.allocate_user_data();
_self
}
pub fn get_concrete_type_name(&self) -> Option<&str> {
unsafe {
std::ffi::CStr::from_ptr(PxRigidStatic_getConcreteTypeName(self.get_raw()) as _)
.to_str()
.ok()
}
}
}