SteeringBehavior class
Base class for all concrete steering behaviors. They produce a force that describes where an agent should move and how fast it should travel to get there.
Note: All built-in steering behaviors assume a {@link Vehicle#mass} of one. Different values can lead to an unexpected results.
Constructors
Properties
Methods
-
calculate(
Vehicle vehicle, Vector3 force, [double? delta]) → Vector3? - Calculates the steering force for a single simulation step.
-
fromJSON(
Map< String, dynamic> json) → SteeringBehavior - Restores this instance from the given JSON object.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolveReferences(
Map< String, GameEntity> entities) → SteeringBehavior? - Restores UUIDs with references to GameEntity objects.
-
toJSON(
) → Map< String, dynamic> - Transforms this instance into a JSON object.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited