removed scaling from btTransform (we only want to deal with rigid transforms)

added BasicDemo to projectfiles (serves as a very small test for porting Bullet to other languages)
This commit is contained in:
ejcoumans
2006-10-10 00:43:13 +00:00
parent f3eb3cfa37
commit 919e8def68
14 changed files with 909 additions and 115 deletions

View File

@@ -21,21 +21,13 @@ subject to the following restrictions:
#include "LinearMath/btMatrix3x3.h"
///btTransform supports rigid transforms (only translation and rotation, no scaling/shear)
class btTransform {
public:
enum {
TRANSLATION = 0x01,
ROTATION = 0x02,
RIGID = TRANSLATION | ROTATION,
SCALING = 0x04,
LINEAR = ROTATION | SCALING,
AFFINE = TRANSLATION | LINEAR
};
btTransform() {}
explicit SIMD_FORCE_INLINE btTransform(const btQuaternion& q,
@@ -45,8 +37,7 @@ public:
{}
explicit SIMD_FORCE_INLINE btTransform(const btMatrix3x3& b,
const btVector3& c = btVector3(btScalar(0), btScalar(0), btScalar(0)),
unsigned int type = AFFINE)
const btVector3& c = btVector3(btScalar(0), btScalar(0), btScalar(0)))
: m_basis(b),
m_origin(c)
{}
@@ -130,10 +121,7 @@ public:
m_basis.setRotation(q);
}
SIMD_FORCE_INLINE void scale(const btVector3& scaling)
{
m_basis = m_basis.scaled(scaling);
}
void setIdentity()
{