Struct hkpEntity

Source
pub struct hkpEntity<'a> {
Show 24 fields pub __ptr: Option<Pointer>, pub parent: hkpWorldObject<'a>, pub m_material: hkpMaterial, pub m_limitContactImpulseUtilAndFlag: Pointer, pub m_damageMultiplier: f32, pub m_breakableBody: Pointer, pub m_solverData: u32, pub m_storageIndex: u16, pub m_contactPointCallbackDelay: u16, pub m_constraintsMaster: hkpEntitySmallArraySerializeOverrideType, pub m_constraintsSlave: Vec<Pointer>, pub m_constraintRuntime: Vec<u8>, pub m_simulationIsland: Pointer, pub m_autoRemoveLevel: i8, pub m_numShapeKeysInContactPointProperties: u8, pub m_responseModifierFlags: u8, pub m_uid: u32, pub m_spuCollisionCallback: hkpEntitySpuCollisionCallback, pub m_motion: hkpMaxSizeMotion, pub m_contactListeners: hkpEntitySmallArraySerializeOverrideType, pub m_actions: hkpEntitySmallArraySerializeOverrideType, pub m_localFrame: Pointer, pub m_extendedListeners: Pointer, pub m_npData: u32,
}
Expand description

§C++ Info

  • name: hkpEntity
  • version: 3
  • signature: 0xa03c774b
  • size: 544(x86)/720(x86_64)
  • vtable: true

Fields§

§__ptr: Option<Pointer>

§Unique index for this class

  • Represents a pointer on XML (<hkobject name="#0001"></hkobject>)
  • Option::None => This class is class in field.(<hkobject></hkobject>)

§Note

Not present in the binary & Not exist actual C++ field.

§parent: hkpWorldObject<'a>

Alternative to C++ class inheritance.

§m_material: hkpMaterial

§C++ Info

  • name: material(ctype: struct hkpMaterial)
  • offset: 140(x86)/208(x86_64)
  • type_size: 12(x86)/ 12(x86_64)
§m_limitContactImpulseUtilAndFlag: Pointer

§C++ Info

  • name: limitContactImpulseUtilAndFlag(ctype: void*)
  • offset: 152(x86)/224(x86_64)
  • type_size: 4(x86)/ 8(x86_64)
  • flags: SERIALIZE_IGNORED
§m_damageMultiplier: f32

§C++ Info

  • name: damageMultiplier(ctype: hkReal)
  • offset: 156(x86)/232(x86_64)
  • type_size: 4(x86)/ 4(x86_64)
§m_breakableBody: Pointer

§C++ Info

  • name: breakableBody(ctype: void*)
  • offset: 160(x86)/240(x86_64)
  • type_size: 4(x86)/ 8(x86_64)
  • flags: SERIALIZE_IGNORED
§m_solverData: u32

§C++ Info

  • name: solverData(ctype: hkUint32)
  • offset: 164(x86)/248(x86_64)
  • type_size: 4(x86)/ 4(x86_64)
  • flags: SERIALIZE_IGNORED
§m_storageIndex: u16

§C++ Info

  • name: storageIndex(ctype: hkUint16)
  • offset: 168(x86)/252(x86_64)
  • type_size: 2(x86)/ 2(x86_64)
§m_contactPointCallbackDelay: u16

§C++ Info

  • name: contactPointCallbackDelay(ctype: hkUint16)
  • offset: 170(x86)/254(x86_64)
  • type_size: 2(x86)/ 2(x86_64)
§m_constraintsMaster: hkpEntitySmallArraySerializeOverrideType

§C++ Info

  • name: constraintsMaster(ctype: struct hkpEntitySmallArraySerializeOverrideType)
  • offset: 172(x86)/256(x86_64)
  • type_size: 8(x86)/ 16(x86_64)
  • flags: SERIALIZE_IGNORED
§m_constraintsSlave: Vec<Pointer>

§C++ Info

  • name: constraintsSlave(ctype: hkArray<hkpConstraintInstance*>)
  • offset: 180(x86)/272(x86_64)
  • type_size: 12(x86)/ 16(x86_64)
  • flags: NOT_OWNED|SERIALIZE_IGNORED
§m_constraintRuntime: Vec<u8>

§C++ Info

  • name: constraintRuntime(ctype: hkArray<hkUint8>)
  • offset: 192(x86)/288(x86_64)
  • type_size: 12(x86)/ 16(x86_64)
  • flags: SERIALIZE_IGNORED
§m_simulationIsland: Pointer

§C++ Info

  • name: simulationIsland(ctype: void*)
  • offset: 204(x86)/304(x86_64)
  • type_size: 4(x86)/ 8(x86_64)
  • flags: SERIALIZE_IGNORED
§m_autoRemoveLevel: i8

§C++ Info

  • name: autoRemoveLevel(ctype: hkInt8)
  • offset: 208(x86)/312(x86_64)
  • type_size: 1(x86)/ 1(x86_64)
§m_numShapeKeysInContactPointProperties: u8

§C++ Info

  • name: numShapeKeysInContactPointProperties(ctype: hkUint8)
  • offset: 209(x86)/313(x86_64)
  • type_size: 1(x86)/ 1(x86_64)
§m_responseModifierFlags: u8

§C++ Info

  • name: responseModifierFlags(ctype: hkUint8)
  • offset: 210(x86)/314(x86_64)
  • type_size: 1(x86)/ 1(x86_64)
§m_uid: u32

§C++ Info

  • name: uid(ctype: hkUint32)
  • offset: 212(x86)/316(x86_64)
  • type_size: 4(x86)/ 4(x86_64)
§m_spuCollisionCallback: hkpEntitySpuCollisionCallback

§C++ Info

  • name: spuCollisionCallback(ctype: struct hkpEntitySpuCollisionCallback)
  • offset: 216(x86)/320(x86_64)
  • type_size: 8(x86)/ 16(x86_64)
§m_motion: hkpMaxSizeMotion

§C++ Info

  • name: motion(ctype: struct hkpMaxSizeMotion)
  • offset: 224(x86)/336(x86_64)
  • type_size: 288(x86)/320(x86_64)
§m_contactListeners: hkpEntitySmallArraySerializeOverrideType

§C++ Info

  • name: contactListeners(ctype: struct hkpEntitySmallArraySerializeOverrideType)
  • offset: 512(x86)/656(x86_64)
  • type_size: 8(x86)/ 16(x86_64)
  • flags: SERIALIZE_IGNORED
§m_actions: hkpEntitySmallArraySerializeOverrideType

§C++ Info

  • name: actions(ctype: struct hkpEntitySmallArraySerializeOverrideType)
  • offset: 520(x86)/672(x86_64)
  • type_size: 8(x86)/ 16(x86_64)
  • flags: SERIALIZE_IGNORED
§m_localFrame: Pointer

§C++ Info

  • name: localFrame(ctype: struct hkLocalFrame*)
  • offset: 528(x86)/688(x86_64)
  • type_size: 4(x86)/ 8(x86_64)
§m_extendedListeners: Pointer

§C++ Info

  • name: extendedListeners(ctype: struct hkpEntityExtendedListeners*)
  • offset: 532(x86)/696(x86_64)
  • type_size: 4(x86)/ 8(x86_64)
  • flags: SERIALIZE_IGNORED
§m_npData: u32

§C++ Info

  • name: npData(ctype: hkUint32)
  • offset: 536(x86)/704(x86_64)
  • type_size: 4(x86)/ 4(x86_64)

Trait Implementations§

Source§

impl<'a> Clone for hkpEntity<'a>

Source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for hkpEntity<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Default for hkpEntity<'a>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for hkpEntity<'de>

Source§

fn deserialize<__D>(deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<'a> HavokClass for hkpEntity<'a>

Source§

fn name(&self) -> &'static str

Get Class name.
Source§

fn signature(&self) -> Signature

Get signature.
Source§

fn deps_indexes(&self) -> Vec<usize>

Get dependencies class of indexes to do topological sort.
Source§

impl<'a> PartialEq for hkpEntity<'a>

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'a> Serialize for hkpEntity<'a>

Source§

fn serialize<S>(&self, __serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer.

Auto Trait Implementations§

§

impl<'a> Freeze for hkpEntity<'a>

§

impl<'a> RefUnwindSafe for hkpEntity<'a>

§

impl<'a> Send for hkpEntity<'a>

§

impl<'a> Sync for hkpEntity<'a>

§

impl<'a> Unpin for hkpEntity<'a>

§

impl<'a> UnwindSafe for hkpEntity<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> IntoResult<T> for T

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.