コード例 #1
0
ファイル: IForceEffect.cpp プロジェクト: Near32/IMUViewer
void GravityForceEffect::Apply(float dt, RigidBody& RB)
{
	// this force is applied to the center of mass of the rigid body so it does not involve the creation of any torque.
	RB.addForce( RB.getMass()*gravityVector);
}