Updates to various components, added a few new ones.

This commit is contained in:
Areloch 2019-02-24 01:50:38 -06:00
parent e0627973fb
commit dac8d6e1fd
52 changed files with 4566 additions and 1799 deletions

View file

@ -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)