mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-21 04:15:36 +00:00
PhysicsShape applyTorque function
This commit is contained in:
parent
f42c9bd9b7
commit
55e9af9786
7 changed files with 42 additions and 2 deletions
|
|
@ -356,6 +356,17 @@ void BtBody::applyImpulse( const Point3F &origin, const Point3F &force )
|
|||
mActor->activate();
|
||||
}
|
||||
|
||||
void BtBody::applyTorque(const Point3F &torque)
|
||||
{
|
||||
AssertFatal(mActor, "BtBody::applyTorque - The actor is null!");
|
||||
AssertFatal(isDynamic(), "BtBody::applyTorque - This call is only for dynamics!");
|
||||
|
||||
mActor->applyTorque( btCast<btVector3>(torque) );
|
||||
|
||||
if (!mActor->isActive())
|
||||
mActor->activate();
|
||||
}
|
||||
|
||||
Box3F BtBody::getWorldBounds()
|
||||
{
|
||||
btVector3 min, max;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue