![]() |
Public API Reference |
Control moving an iPcMesh. More...
#include <propclass/move.h>
Public Member Functions | |
| virtual void | AddConstraint (iPcMovableConstraint *constraint)=0 |
| Add a constraint. | |
| virtual iPcMesh * | GetMesh ()=0 |
| Get the current mesh on which we're working. | |
| virtual int | Move (iSector *sector, const csVector3 &pos)=0 |
| Move object while checking constraints. | |
| virtual int | Move (const csVector3 &relpos)=0 |
| Relative move. | |
| virtual void | RemoveAllConstraints ()=0 |
| Remove all constraints. | |
| virtual void | RemoveConstraint (iPcMovableConstraint *constraint)=0 |
| Remove a constraint. | |
| virtual void | SetMesh (iPcMesh *mesh)=0 |
| Set mesh to move. | |
| virtual void iPcMovable::AddConstraint | ( | iPcMovableConstraint * | constraint | ) | [pure virtual] |
Add a constraint.
| virtual iPcMesh* iPcMovable::GetMesh | ( | ) | [pure virtual] |
Get the current mesh on which we're working.
| virtual int iPcMovable::Move | ( | iSector * | sector, |
| const csVector3 & | pos | ||
| ) | [pure virtual] |
Move object while checking constraints.
This routine will ignore the previous position and will just check if it is possible to move to the given position. Returns:
| virtual int iPcMovable::Move | ( | const csVector3 & | relpos | ) | [pure virtual] |
Relative move.
Check constraints too. This function will correctly update the current sector if a portal is traversed. Returns:
| virtual void iPcMovable::RemoveAllConstraints | ( | ) | [pure virtual] |
Remove all constraints.
| virtual void iPcMovable::RemoveConstraint | ( | iPcMovableConstraint * | constraint | ) | [pure virtual] |
Remove a constraint.
| virtual void iPcMovable::SetMesh | ( | iPcMesh * | mesh | ) | [pure virtual] |
Set mesh to move.
If not set a default mesh will be found from the parent entity.