iPcMovableConstraint Struct ReferenceA constraint for a movable. More...
Public Member Functions
|virtual int||CheckMove (iSector *sector, const csVector3 &from, const csVector3 &to, csVector3 &pos)=0|
|Check if an object can move. |
Detailed DescriptionA constraint for a movable.
Member Function Documentation
|virtual int iPcMovableConstraint::CheckMove||(||iSector *||sector,|
|const csVector3 &||from,|
|const csVector3 &||to,|
Check if an object can move.
- CEL_MOVE_FAIL: if no movement is possible.
- CEL_MOVE_SUCCEED: if movement is possible.
- CEL_MOVE_PARTIAL: if object can move partially.
'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.
The documentation for this struct was generated from the following file:
Generated for CEL: Crystal Entity Layer by doxygen 1.4.7