Runtime Spawner 1.0.0
Generic Runtime spawn and instance pooling system for spawning random AI agents around a map. Works with ANY AI system easily.
Loading...
Searching...
No Matches
MegaCrush.RuntimeSpawnerSample.CharController Class Reference

Attach this to the character, optionally also add a rigidbody, just cuz. More...

Inheritance diagram for MegaCrush.RuntimeSpawnerSample.CharController:

Public Attributes

float walkSpeed = 3.0f
 
float moveThreshold = 0.1f
 
float gravity = 20.0f
 

Private Member Functions

void Start ()
 
void Update ()
 

Private Attributes

float desiredSpeed = 0f
 
float currentSpeed = 0f
 
Vector3 moveDirection = Vector3.zero
 
Vector3 lastDirection = Vector3.zero
 
Vector3 forward
 
Vector3 right
 
float h
 
float v
 
Camera mainCamera
 
CharacterController controller
 

Detailed Description

Attach this to the character, optionally also add a rigidbody, just cuz.

Member Function Documentation

◆ Start()

void MegaCrush.RuntimeSpawnerSample.CharController.Start ( )
private

◆ Update()

void MegaCrush.RuntimeSpawnerSample.CharController.Update ( )
private

Member Data Documentation

◆ controller

CharacterController MegaCrush.RuntimeSpawnerSample.CharController.controller
private

◆ currentSpeed

float MegaCrush.RuntimeSpawnerSample.CharController.currentSpeed = 0f
private

◆ desiredSpeed

float MegaCrush.RuntimeSpawnerSample.CharController.desiredSpeed = 0f
private

◆ forward

Vector3 MegaCrush.RuntimeSpawnerSample.CharController.forward
private

◆ gravity

float MegaCrush.RuntimeSpawnerSample.CharController.gravity = 20.0f

◆ h

float MegaCrush.RuntimeSpawnerSample.CharController.h
private

◆ lastDirection

Vector3 MegaCrush.RuntimeSpawnerSample.CharController.lastDirection = Vector3.zero
private

◆ mainCamera

Camera MegaCrush.RuntimeSpawnerSample.CharController.mainCamera
private

◆ moveDirection

Vector3 MegaCrush.RuntimeSpawnerSample.CharController.moveDirection = Vector3.zero
private

◆ moveThreshold

float MegaCrush.RuntimeSpawnerSample.CharController.moveThreshold = 0.1f

◆ right

Vector3 MegaCrush.RuntimeSpawnerSample.CharController.right
private

◆ v

float MegaCrush.RuntimeSpawnerSample.CharController.v
private

◆ walkSpeed

float MegaCrush.RuntimeSpawnerSample.CharController.walkSpeed = 3.0f

The documentation for this class was generated from the following file: