TopDown Engine  v3.6
MoreMountains.TopDownEngine.MouseDrivenPathfinderAI3D Class Reference

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...

Inheritance diagram for MoreMountains.TopDownEngine.MouseDrivenPathfinderAI3D:
MoreMountains.TopDownEngine.TopDownMonoBehaviour MoreMountains.Tools.MMMonoBehaviour

Public Attributes

Camera Cam
 the camera we'll use to determine the destination from More...
 
GameObject Destination
 a gameobject used to show the destination More...
 

Protected Member Functions

virtual void Awake ()
 On awake we create a plane to catch our ray More...
 
virtual void Update ()
 On Update we look for a mouse click More...
 
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 More...
 

Protected Attributes

CharacterPathfinder3D _characterPathfinder3D
 
Plane _playerPlane
 
bool _destinationSet = false
 
Camera _mainCamera
 

Detailed Description

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

Member Function Documentation

◆ 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

Member Data Documentation

◆ _characterPathfinder3D

CharacterPathfinder3D MoreMountains.TopDownEngine.MouseDrivenPathfinderAI3D._characterPathfinder3D
protected

◆ _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: