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

@ -111,6 +111,8 @@ public:
F32 staticFriction );
virtual void applyCorrection( const MatrixF &xfm );
virtual void applyImpulse( const Point3F &origin, const Point3F &force );
virtual void findContact(SceneObject **contactObject, VectorF *contactNormal, Vector<SceneObject*> *outOverlapObjects) const;
};
#endif // _T3D_PHYSICS_BTBODY_H_