pub struct hkpMotion {Show 14 fields
pub __ptr: Option<Pointer>,
pub parent: hkReferencedObject,
pub m_type: MotionType,
pub m_deactivationIntegrateCounter: u8,
pub m_deactivationNumInactiveFrames: [u16; 2],
pub m_motionState: hkMotionState,
pub m_inertiaAndMassInv: Vector4,
pub m_linearVelocity: Vector4,
pub m_angularVelocity: Vector4,
pub m_deactivationRefPosition: [Vector4; 2],
pub m_deactivationRefOrientation: [u32; 2],
pub m_savedMotion: Pointer,
pub m_savedQualityTypeIndex: u16,
pub m_gravityFactor: f16,
}
Expand description
§C++ Info
- name:
hkpMotion
- version:
3
- signature:
0x98aadb4f
- size:
288
(x86)/320
(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 isclass in field
.(<hkobject></hkobject>
)
§Note
Not present in the binary & Not exist actual C++ field.
parent: hkReferencedObject
Alternative to C++ class inheritance.
m_type: MotionType
§C++ Info
- name:
type
(ctype:enum MotionType
) - offset:
8
(x86)/16
(x86_64) - type_size:
1
(x86)/1
(x86_64)
m_deactivationIntegrateCounter: u8
§C++ Info
- name:
deactivationIntegrateCounter
(ctype:hkUint8
) - offset:
9
(x86)/17
(x86_64) - type_size:
1
(x86)/1
(x86_64)
m_deactivationNumInactiveFrames: [u16; 2]
§C++ Info
- name:
deactivationNumInactiveFrames
(ctype:hkUint16[2]
) - offset:
10
(x86)/18
(x86_64) - type_size:
4
(x86)/4
(x86_64)
m_motionState: hkMotionState
§C++ Info
- name:
motionState
(ctype:struct hkMotionState
) - offset:
16
(x86)/32
(x86_64) - type_size:
176
(x86)/176
(x86_64)
m_inertiaAndMassInv: Vector4
§C++ Info
- name:
inertiaAndMassInv
(ctype:hkVector4
) - offset:
192
(x86)/208
(x86_64) - type_size:
16
(x86)/16
(x86_64)
m_linearVelocity: Vector4
§C++ Info
- name:
linearVelocity
(ctype:hkVector4
) - offset:
208
(x86)/224
(x86_64) - type_size:
16
(x86)/16
(x86_64)
m_angularVelocity: Vector4
§C++ Info
- name:
angularVelocity
(ctype:hkVector4
) - offset:
224
(x86)/240
(x86_64) - type_size:
16
(x86)/16
(x86_64)
m_deactivationRefPosition: [Vector4; 2]
§C++ Info
- name:
deactivationRefPosition
(ctype:hkVector4[2]
) - offset:
240
(x86)/256
(x86_64) - type_size:
32
(x86)/32
(x86_64)
m_deactivationRefOrientation: [u32; 2]
§C++ Info
- name:
deactivationRefOrientation
(ctype:hkUint32[2]
) - offset:
272
(x86)/288
(x86_64) - type_size:
8
(x86)/8
(x86_64)
m_savedMotion: Pointer
§C++ Info
- name:
savedMotion
(ctype:struct hkpMaxSizeMotion*
) - offset:
280
(x86)/296
(x86_64) - type_size:
4
(x86)/8
(x86_64)
m_savedQualityTypeIndex: u16
§C++ Info
- name:
savedQualityTypeIndex
(ctype:hkUint16
) - offset:
284
(x86)/304
(x86_64) - type_size:
2
(x86)/2
(x86_64)
m_gravityFactor: f16
§C++ Info
- name:
gravityFactor
(ctype:hkHalf
) - offset:
286
(x86)/306
(x86_64) - type_size:
2
(x86)/2
(x86_64)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for hkpMotion
impl<'de> Deserialize<'de> for hkpMotion
Source§fn deserialize<__D>(deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 HavokClass for hkpMotion
impl HavokClass for hkpMotion
Auto Trait Implementations§
impl Freeze for hkpMotion
impl RefUnwindSafe for hkpMotion
impl Send for hkpMotion
impl Sync for hkpMotion
impl Unpin for hkpMotion
impl UnwindSafe for hkpMotion
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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