Adds findContact to regular physics bodies so that they can find contacting objects and surfaces in a way similar to players.

This commit is contained in:
Areloch 2016-05-13 23:57:48 -05:00
parent 1299b527f1
commit b64123a452
5 changed files with 125 additions and 0 deletions

View file

@ -113,6 +113,10 @@ public:
///
virtual void applyImpulse( const Point3F &origin, const Point3F &force ) = 0;
virtual void findContact(SceneObject **contactObject,
VectorF *contactNormal,
Vector<SceneObject*> *outOverlapObjects) const = 0;
};