move some files to shared folders
use b3Aabb for compound vs compound on host (for testing, towards BVH)
This commit is contained in:
@@ -832,6 +832,12 @@ b3Slerp(const b3Quaternion& q1, const b3Quaternion& q2, const b3Scalar& t)
|
||||
return q1.slerp(q2, t);
|
||||
}
|
||||
|
||||
B3_FORCE_INLINE b3Quaternion
|
||||
b3QuatMul(const b3Quaternion& rot0, const b3Quaternion& rot1)
|
||||
{
|
||||
return rot0*rot1;
|
||||
}
|
||||
|
||||
B3_FORCE_INLINE b3Vector3
|
||||
b3QuatRotate(const b3Quaternion& rotation, const b3Vector3& v)
|
||||
{
|
||||
|
||||
@@ -4,8 +4,9 @@
|
||||
#include "Bullet3Common/shared/b3PlatformDefinitions.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
#include "Bullet3Common/b3Vector3.h"
|
||||
#define b3Float4 b3Vector3
|
||||
#else//bla
|
||||
#else
|
||||
typedef float4 b3Float4;
|
||||
#endif
|
||||
|
||||
|
||||
@@ -6,4 +6,11 @@ struct MyTest
|
||||
int bla;
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
#define b3AtomicInc(a) ((*a)++)
|
||||
#else
|
||||
#define b3AtomicInc atomic_inc
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
13
src/Bullet3Common/shared/b3Quat.h
Normal file
13
src/Bullet3Common/shared/b3Quat.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#ifndef B3_QUAT_H
|
||||
#define B3_QUAT_H
|
||||
|
||||
#include "Bullet3Common/shared/b3PlatformDefinitions.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
#include "Bullet3Common/b3Quaternion.h"
|
||||
#define b3Quat b3Quaternion
|
||||
#else
|
||||
typedef float4 b3Quat;
|
||||
#endif
|
||||
|
||||
#endif //B3_QUAT_H
|
||||
Reference in New Issue
Block a user