new SteeringBehavior()
Constructs a new steering behavior.
Members
- 
active :Boolean
 - 
    
    
Whether this steering behavior is active or not.
- Default Value:
 - true
 
 - 
weight :Number
 - 
    
    
Can be used to tweak the amount that a steering force contributes to the total steering force.
- Default Value:
 - 1
 
 
Methods
- 
    
        
calculate(vehicle, force, delta) → {Vector3}
 - 
    
    
Calculates the steering force for a single simulation step.
Parameters:
Name Type Description vehicleVehicle The game entity the force is produced for.
forceVector3 The force/result vector.
deltaNumber The time delta.
 - 
    
        
fromJSON(json) → {SteeringBehavior}
 - 
    
    
Restores this instance from the given JSON object.
Parameters:
Name Type Description jsonObject The JSON object.
 - 
    
        
resolveReferences(entities) → {SteeringBehavior}
 - 
    
    
Restores UUIDs with references to GameEntity objects.
Parameters:
Name Type Description entitiesMap.<String, GameEntity> Maps game entities to UUIDs.
 - 
    
        
toJSON() → {Object}
 - 
    
    
Transforms this instance into a JSON object.
Returns:
Object -The JSON object.