![]() |
Public API Reference |
A constraint for a movable. More...
#include <propclass/move.h>
Public Member Functions | |
| virtual int | CheckMove (iSector *sector, const csVector3 &from, const csVector3 &to, csVector3 &pos)=0 |
| Check if an object can move. | |
| virtual int iPcMovableConstraint::CheckMove | ( | iSector * | sector, |
| const csVector3 & | from, | ||
| const csVector3 & | to, | ||
| csVector3 & | pos | ||
| ) | [pure virtual] |
Check if an object can move.
Returns:
'pos' will contain the final position that this constraint considered valid. Note! If 'from' and 'to' are equal then it is only checked if the object can be put on the specified position. In that case this routine will never return CEL_MOVE_PARTIAL.