All Classes Namespaces Functions Variables Enumerations Enumerator Properties
plyGame.NPCMoveBase Class Reference

This is the base class for the NPC movement controllers. All movement controllers should derive from this. More...

Inherits MonoBehaviour.

Inherited by plyGame.NPCMovePro, and plyGame.NPCMoveSimple.

Public Member Functions

virtual void MoveTo (Vector3 pos, float moveSpeed, float turnSpeed)
 Ask mover to move the NPC to the target position. More...
 
virtual void FaceDirection (Vector3 direction, float turnSpeed)
 Ask the mover to face the NPC in the target direction. More...
 
virtual void Stop ()
 Make the mover stop immediately. More...
 
virtual Vector3 Velocity ()
 Current velocity according to mover. More...
 
virtual Vector3 DesiredVelocity ()
 Mover's desired velocity. More...
 
virtual void UpdateVelocity (Vector3 v)
 Tell mover to use this velocity. More...
 
virtual bool Grounded ()
 Is the character on the ground? More...
 
virtual bool IsMovingOrPathing ()
 Is the mover moving the character or getting ready to move it? More...
 
virtual bool InControlledTurn ()
 Return true if in controlled turn. Normally when performing a FaceDirection() request. More...
 

Detailed Description

This is the base class for the NPC movement controllers. All movement controllers should derive from this.

Member Function Documentation

virtual Vector3 plyGame.NPCMoveBase.DesiredVelocity ( )
virtual

Mover's desired velocity.

virtual void plyGame.NPCMoveBase.FaceDirection ( Vector3  direction,
float  turnSpeed 
)
virtual

Ask the mover to face the NPC in the target direction.

virtual bool plyGame.NPCMoveBase.Grounded ( )
virtual

Is the character on the ground?

virtual bool plyGame.NPCMoveBase.InControlledTurn ( )
virtual

Return true if in controlled turn. Normally when performing a FaceDirection() request.

virtual bool plyGame.NPCMoveBase.IsMovingOrPathing ( )
virtual

Is the mover moving the character or getting ready to move it?

virtual void plyGame.NPCMoveBase.MoveTo ( Vector3  pos,
float  moveSpeed,
float  turnSpeed 
)
virtual

Ask mover to move the NPC to the target position.

virtual void plyGame.NPCMoveBase.Stop ( )
virtual

Make the mover stop immediately.

virtual void plyGame.NPCMoveBase.UpdateVelocity ( Vector3  v)
virtual

Tell mover to use this velocity.

virtual Vector3 plyGame.NPCMoveBase.Velocity ( )
virtual

Current velocity according to mover.