Falco Engine 3.9.0.1 (beta)
NavMeshAgent.cs
Go to the documentation of this file.
1using System;
2using System.Runtime.CompilerServices;
3using System.Runtime.InteropServices;
4
5namespace FalcoEngine
6{
7 public class NavMeshAgent : Component
8 {
9 internal NavMeshAgent()
10 {
11
12 }
13
14 /*----------- PUBLIC ------------*/
15
20 {
21 get
22 {
23 INTERNAL_getTargetPosition(out Vector3 position);
24 return position;
25 }
26 set
27 {
28 INTERNAL_setTargetPosition(ref value);
29 }
30 }
31
36 public float radius { [MethodImpl(MethodImplOptions.InternalCall)] get; [MethodImpl(MethodImplOptions.InternalCall)] set; }
37
41 public float height { [MethodImpl(MethodImplOptions.InternalCall)] get; [MethodImpl(MethodImplOptions.InternalCall)] set; }
42
46 public float speed { [MethodImpl(MethodImplOptions.InternalCall)] get; [MethodImpl(MethodImplOptions.InternalCall)] set; }
47
51 public float acceleration { [MethodImpl(MethodImplOptions.InternalCall)] get; [MethodImpl(MethodImplOptions.InternalCall)] set; }
52
53 /*----------- INTERNAL CALLS ------------*/
54
55 [MethodImpl(MethodImplOptions.InternalCall)]
56 private extern void INTERNAL_getTargetPosition(out Vector3 position);
57
58 [MethodImpl(MethodImplOptions.InternalCall)]
59 private extern void INTERNAL_setTargetPosition(ref Vector3 position);
60 }
61}
float radius
The avoidance radius for the agent This is the agent's space within which obstacles and other agents ...
Definition: NavMeshAgent.cs:36
float height
The height of the agent for purposes of passing under obstacles, etc.
Definition: NavMeshAgent.cs:41
float acceleration
The maximum acceleration of an agent as it follows a path
Definition: NavMeshAgent.cs:51
float speed
Maximum movement speed when following a path
Definition: NavMeshAgent.cs:46
Vector3 targetPosition
Gets or attempts to set the destination of the agent in world-space units
Definition: NavMeshAgent.cs:20