mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-18 22:23:48 +00:00
Updates to various components, added a few new ones.
This commit is contained in:
parent
e0627973fb
commit
dac8d6e1fd
52 changed files with 4566 additions and 1799 deletions
|
|
@ -39,7 +39,7 @@ bool RigidBodyComponent::smNoSmoothing = false;
|
|||
//////////////////////////////////////////////////////////////////////////
|
||||
// Constructor/Destructor
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
RigidBodyComponent::RigidBodyComponent() : Component()
|
||||
RigidBodyComponent::RigidBodyComponent() : PhysicsComponent()
|
||||
{
|
||||
mMass = 20;
|
||||
mDynamicFriction = 1;
|
||||
|
|
@ -353,11 +353,11 @@ void RigidBodyComponent::findContact()
|
|||
|
||||
mPhysicsRep->findContact(&contactObject, contactNormal, &overlapObjects);
|
||||
|
||||
if (!overlapObjects.empty())
|
||||
/*if (!overlapObjects.empty())
|
||||
{
|
||||
//fire our signal that the physics sim said collisions happened
|
||||
onPhysicsCollision.trigger(*contactNormal, overlapObjects);
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
void RigidBodyComponent::_onPhysicsReset(PhysicsResetEvent reset)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue