Havok: Add hkpBoxMotion

This commit is contained in:
Léo Lam 2022-01-15 18:19:04 +01:00
parent c6f0a3cb4c
commit 843f2bcd88
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
2 changed files with 33 additions and 0 deletions

View File

@ -104,6 +104,7 @@ add_library(hkStubs OBJECT
Havok/Physics2012/Dynamics/Entity/hkpRigidBody.h
Havok/Physics2012/Dynamics/Entity/hkpRigidBodyCinfo.h
Havok/Physics2012/Dynamics/Motion/hkpMotion.h
Havok/Physics2012/Dynamics/Motion/Rigid/hkpBoxMotion.h
Havok/Physics2012/Dynamics/Motion/Rigid/hkpKeyframedRigidMotion.h
Havok/Physics2012/Dynamics/World/hkpPhysicsSystem.h
Havok/Physics2012/Dynamics/World/hkpWorld.cpp

View File

@ -0,0 +1,32 @@
#pragma once
#include <Havok/Common/Base/hkBase.h>
#include <Havok/Physics2012/Dynamics/Motion/hkpMotion.h>
class hkpBoxMotion : public hkpMotion {
public:
HK_DECLARE_CLASS_ALLOCATOR(hkpBoxMotion)
HK_DECLARE_REFLECTION()
hkpBoxMotion(const hkVector4& position, const hkQuaternion& rotation);
explicit hkpBoxMotion(hkFinishLoadedObjectFlag flag) : hkpMotion(flag) {}
void getInertiaLocal(hkMatrix3& inertia) const override;
void getInertiaWorld(hkMatrix3& inertiaOut) const override;
void setInertiaLocal(const hkMatrix3& inertia) override;
void setMass(hkReal m) override;
void setMass(hkSimdRealParameter m) override;
void setInertiaInvLocal(const hkMatrix3& inertiaInv) override;
void getInertiaInvLocal(hkMatrix3& inertiaInv) const override;
void getInertiaInvWorld(hkMatrix3& inertiaInvOut) const override;
void applyPointImpulse(const hkVector4& imp, const hkVector4& p) override;
void applyAngularImpulse(const hkVector4& imp) override;
void applyForce(const hkReal deltaTime, const hkVector4& force) override;
void applyForce(const hkReal deltaTime, const hkVector4& force, const hkVector4& p) override;
void applyTorque(const hkReal deltaTime, const hkVector4& torque) override;
void getProjectedPointVelocity(const hkVector4& p, const hkVector4& normal, hkReal& velOut,
hkReal& invVirtMassOut) const override;
void getProjectedPointVelocitySimd(const hkVector4& p, const hkVector4& normal,
hkSimdReal& velOut,
hkSimdReal& invVirtMassOut) const override;
};