diff --git a/lib/hkStubs/CMakeLists.txt b/lib/hkStubs/CMakeLists.txt index bc285121..ebde6b0f 100644 --- a/lib/hkStubs/CMakeLists.txt +++ b/lib/hkStubs/CMakeLists.txt @@ -99,6 +99,7 @@ add_library(hkStubs OBJECT Havok/Physics2012/Dynamics/Common/hkpProperty.h Havok/Physics2012/Dynamics/Entity/hkpEntity.h Havok/Physics2012/Dynamics/Entity/hkpRigidBody.h + Havok/Physics2012/Dynamics/Entity/hkpRigidBodyCinfo.h Havok/Physics2012/Dynamics/Motion/hkpMotion.h Havok/Physics2012/Dynamics/Motion/Rigid/hkpKeyframedRigidMotion.h Havok/Physics2012/Dynamics/World/hkpPhysicsSystem.h diff --git a/lib/hkStubs/Havok/Physics2012/Dynamics/Entity/hkpRigidBodyCinfo.h b/lib/hkStubs/Havok/Physics2012/Dynamics/Entity/hkpRigidBodyCinfo.h new file mode 100644 index 00000000..7eb3dc6e --- /dev/null +++ b/lib/hkStubs/Havok/Physics2012/Dynamics/Entity/hkpRigidBodyCinfo.h @@ -0,0 +1,59 @@ +#pragma once + +#include +#include +#include +#include + +class hkLocalFrame; +class hkpShape; + +class hkpRigidBodyCinfo { +public: + HK_DECLARE_CLASS_ALLOCATOR(hkpRigidBodyCinfo) + + enum SolverDeactivation { + SOLVER_DEACTIVATION_INVALID, + SOLVER_DEACTIVATION_OFF, + SOLVER_DEACTIVATION_LOW, + SOLVER_DEACTIVATION_MEDIUM, + SOLVER_DEACTIVATION_HIGH, + SOLVER_DEACTIVATION_MAX + }; + + hkpRigidBodyCinfo(); + + void setMassProperties(const struct hkMassProperties& mp); + void setTransform(const hkTransform& transform); + + hkUint32 m_collisionFilterInfo; + const hkpShape* m_shape; + hkVector4 m_position; + hkQuaternion m_rotation; + hkVector4 m_linearVelocity; + hkVector4 m_angularVelocity; + hkMatrix3 m_inertiaTensor; + hkVector4 m_centerOfMass; + hkReal m_mass; + hkReal m_linearDamping; + hkReal m_angularDamping; + hkReal m_gravityFactor; + hkReal m_friction; + hkReal m_rollingFrictionMultiplier; + hkReal m_restitution; + hkReal m_maxLinearVelocity; + hkReal m_maxAngularVelocity; + hkEnum m_motionType; + hkBool m_enableDeactivation; + hkEnum m_solverDeactivation; + hkReal m_allowedPenetrationDepth; + hkReal m_timeFactor; + hkLocalFrame* m_localFrame; + hkEnum m_collisionResponse; + hkUint16 m_contactPointCallbackDelay; + hkEnum m_qualityType; + hkInt8 m_autoRemoveLevel; + hkUint8 m_responseModifierFlags; + hkInt8 m_numShapeKeysInContactPointProperties; + hkBool m_forceCollideOntoPpu; +};