Animancer v6.0 is currently available for testing.

MouseBrain Class

Summary

A Animancer.Examples.StateMachines.Brains.CreatureBrain which controls the creature using mouse 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["MouseBrain"] class Type type-node

Syntax

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

Examples

More 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

Methods

Name Value Summary
CalculateRayTargetXZ(Ray, float) Nullable<Vector3>
static
SameSign(float, float) bool
static