A class to add on a CharacterPathfinder3D equipped character. It will allow you to click anywhere on screen, which will determine a new target and the character will pathfind its way to it.
More...
|
| Camera | Cam |
| | the camera we'll use to determine the destination from
|
| GameObject | Destination |
| | a gameobject used to show the destination
|
|
| virtual void | Awake () |
| | On awake we create a plane to catch our ray.
|
| virtual void | Update () |
| | On Update we look for a mouse click.
|
| virtual void | DetectMouse () |
| | If the mouse is clicked, we cast a ray and if that ray hits the plane we make it the pathfinding target.
|
A class to add on a CharacterPathfinder3D equipped character. It will allow you to click anywhere on screen, which will determine a new target and the character will pathfind its way to it.
◆ Awake()
| virtual void MoreMountains.TopDownEngine.MouseDrivenPathfinderAI3D.Awake |
( |
| ) |
|
|
protectedvirtual |
On awake we create a plane to catch our ray.
◆ DetectMouse()
| virtual void MoreMountains.TopDownEngine.MouseDrivenPathfinderAI3D.DetectMouse |
( |
| ) |
|
|
protectedvirtual |
If the mouse is clicked, we cast a ray and if that ray hits the plane we make it the pathfinding target.
◆ Update()
| virtual void MoreMountains.TopDownEngine.MouseDrivenPathfinderAI3D.Update |
( |
| ) |
|
|
protectedvirtual |
On Update we look for a mouse click.
◆ _characterPathfinder3D
◆ _destinationSet
| bool MoreMountains.TopDownEngine.MouseDrivenPathfinderAI3D._destinationSet = false |
|
protected |
◆ _mainCamera
| Camera MoreMountains.TopDownEngine.MouseDrivenPathfinderAI3D._mainCamera |
|
protected |
◆ _playerPlane
| Plane MoreMountains.TopDownEngine.MouseDrivenPathfinderAI3D._playerPlane |
|
protected |
◆ Cam
| Camera MoreMountains.TopDownEngine.MouseDrivenPathfinderAI3D.Cam |
the camera we'll use to determine the destination from
◆ Destination
| GameObject MoreMountains.TopDownEngine.MouseDrivenPathfinderAI3D.Destination |
a gameobject used to show the destination
The documentation for this class was generated from the following file: