Animancer v6.0 is currently available for testing.

KeyboardBrain Class

Summary

A Animancer.Examples.StateMachines.Brains.CreatureBrain which controls the creature using keyboard input.
Assembly
Animancer.dll
Namespace
Animancer.Examples.StateMachines.Brains
Base Types
graph BT Type-->Base0["CreatureBrain"] click Base0 "/animancer/api/Animancer.Examples.StateMachines.Brains/CreatureBrain" Base0-->Base1["MonoBehaviour"] Type["KeyboardBrain"] class Type type-node

Syntax

[AddComponentMenu(Strings.ExamplesMenuPrefix + "Brains - Keyboard Brain")]
[HelpURL(Strings.DocsURLs.ExampleAPIDocumentation + nameof(StateMachines) + "." + nameof(Brains) + "/" + nameof(KeyboardBrain))]
public sealed class KeyboardBrain : CreatureBrain

Examples

Brains

Attributes

Type Description
AddComponentMenu
HelpURLAttribute

Properties

Name Value Summary
Creature Creature
Inherited from CreatureBrain
IsRunning bool
Indicates whether this brain wants to run.
Inherited from CreatureBrain
MovementDirection Vector3
The direction this brain wants to move.
Inherited from CreatureBrain