ksys/phys: Finish RigidBodyMotion

This commit is contained in:
Léo Lam
2022-01-15 19:00:23 +01:00
parent 19888cc607
commit cee7b169af
5 changed files with 102 additions and 6 deletions
@@ -29,6 +29,7 @@ public:
HK_FORCE_INLINE void set(hkFloat32 x, hkFloat32 y, hkFloat32 z, hkFloat32 w = 0);
HK_FORCE_INLINE void setAll(hkFloat32 x);
HK_FORCE_INLINE void setZero();
// ========== Vector operations
@@ -32,6 +32,10 @@ inline void hkVector4f::setAll(hkReal x) {
v = {x, x, x, x};
}
inline void hkVector4f::setZero() {
setAll(0);
}
inline void hkVector4f::add(hkVector4fParameter a) {
setAdd(*this, a);
}