mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 15:14:35 +00:00
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:
parent
1299b527f1
commit
b64123a452
5 changed files with 125 additions and 0 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue