#[repr(C)]pub struct NiAVObject {Show 14 fields
pub __base: NiObjectNET,
pub parent: *mut NiNode,
pub parent_index: u32,
pub unk03C: u32,
pub collision_object: NiPointer<NiCollisionObject>,
pub local_transform: NiTransform,
pub world_transform: NiTransform,
pub previous_world_transform: NiTransform,
pub world_bound: NiBound,
pub unk_f4: u32,
pub unk_f8: u64,
pub fade_amount: c_float,
pub last_updated_frame_counter: u32,
pub unk104: u64,
}
Fields§
§__base: NiObjectNET
§parent: *mut NiNode
§parent_index: u32
§unk03C: u32
§collision_object: NiPointer<NiCollisionObject>
§local_transform: NiTransform
§world_transform: NiTransform
§previous_world_transform: NiTransform
§world_bound: NiBound
§unk_f4: u32
§unk_f8: u64
§fade_amount: c_float
§last_updated_frame_counter: u32
§unk104: u64
Implementations§
Source§impl NiAVObject
impl NiAVObject
pub const RTTI: VariantID = RTTI_NiObject
pub const NI_RTTI: VariantID = NiRTTI_NiObject
pub const VTABLE: [VariantID; 1] = VTABLE_NiObject
pub fn clone(&self) -> *mut NiAVObject
Sourcepub fn get_app_culled(&self) -> bool
pub fn get_app_culled(&self) -> bool
Returns whether the object is culled (hidden) in the application.
This function checks the visibility status of the object based on its flags.
If the object has the Flag::Hidden
set, it is considered culled (i.e., hidden) and will
not be rendered or processed for certain operations.
The get_app_culled
function essentially checks if the object is flagged as “hidden” by
returning a boolean indicating whether the object is culled or not. This is commonly
used for optimizing rendering performance by excluding objects that should not be visible.
§Returns
true
if the object is culled (i.e., hidden).false
if the object is not culled (i.e., visible).
pub fn get_collision_object(&self) -> *mut bhkCollisionObject
Sourcepub fn get_flags_mut(&mut self) -> Result<&mut Flag, RelocationError>
pub fn get_flags_mut(&mut self) -> Result<&mut Flag, RelocationError>
§Errors
Trait Implementations§
Source§impl Debug for NiAVObject
impl Debug for NiAVObject
Source§impl RefCountable for NiAVObject
impl RefCountable for NiAVObject
Source§fn inc_ref_count(&self)
fn inc_ref_count(&self)
Increment ref count
Source§fn dec_ref_count(&mut self)
fn dec_ref_count(&mut self)
Decrement ref count
Auto Trait Implementations§
impl !Freeze for NiAVObject
impl RefUnwindSafe for NiAVObject
impl !Send for NiAVObject
impl !Sync for NiAVObject
impl Unpin for NiAVObject
impl UnwindSafe for NiAVObject
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