コード例 #1
0
ファイル: gkDynamicsWorld.cpp プロジェクト: Draion/Gamekit
btRigidBody* gkDynamicsWorld::getFixedBody()
{
	static btRigidBody s_fixed(0, 0,0);
    s_fixed.setMassProps(btScalar(0.),btVector3(btScalar(0.),btScalar(0.),btScalar(0.)));

    return &s_fixed;
}
コード例 #2
0
ファイル: btKart.cpp プロジェクト: Flakebi/stk-code
btRigidBody& btKart::getFixedBody()
{
    static btRigidBody s_fixed(0, 0,0);
    s_fixed.setMassProps(btScalar(0.),btVector3(btScalar(0.),
                         btScalar(0.),btScalar(0.)));
    return s_fixed;
}
コード例 #3
0
ファイル: btTypedConstraint.cpp プロジェクト: gitrider/wxsj2
btTypedConstraint::btTypedConstraint(btTypedConstraintType type)
: m_constraintType (type),
m_userConstraintType(-1),
m_userConstraintId(-1),
m_rbA(s_fixed),
m_rbB(s_fixed),
m_appliedImpulse(btScalar(0.))
{
	s_fixed.setMassProps(btScalar(0.),btVector3(btScalar(0.),btScalar(0.),btScalar(0.)));
}
コード例 #4
0
btTypedConstraint::btTypedConstraint(btTypedConstraintType type)
:m_userConstraintType(-1),
m_userConstraintId(-1),
m_needsFeedback(false),
m_constraintType (type),
m_rbA(s_fixed),
m_rbB(s_fixed),
m_appliedImpulse(btScalar(0.)),
m_dbgDrawSize(DEFAULT_DEBUGDRAW_SIZE)
{
	s_fixed.setMassProps(btScalar(0.),btVector3(btScalar(0.),btScalar(0.),btScalar(0.)));
}
コード例 #5
0
btRigidBody& btBulletWorldImporter::getFixedBody()
{
	static btRigidBody s_fixed(0, 0,0);
	s_fixed.setMassProps(btScalar(0.),btVector3(btScalar(0.),btScalar(0.),btScalar(0.)));
	return s_fixed;
}
コード例 #6
0
ファイル: wheel.cpp プロジェクト: logzero/vdrift
static btRigidBody & getFixedBody()
{
	static btRigidBody fixed(0, 0, 0);
	fixed.setMassProps(0, btVector3(0, 0, 0));
	return fixed;
}