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.

Implementers

Constructors

SteeringBehavior()

Properties

active bool
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
path Path
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
target Vector3
getter/setter pair
weight double
getter/setter pair

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