Property | Type | Description | |
---|---|---|---|
MaxPriorityWaitTime | int |
Method | Description | |
---|---|---|
Awake ( ) : void | ||
CustomCalculateSegmentPosition ( ushort vehicleId, Vehicle &vehicleData, PathUnit nextPosition, PathUnit position, uint laneID, byte offset, PathUnit prevPos, uint prevLaneID, byte prevOffset, int index, Vector3 &pos, Vector3 &dir, float &maxSpeed ) : void | ||
CustomCalculateSegmentPositionPathFinder ( ushort vehicleId, Vehicle &vehicleData, PathUnit position, uint laneId, byte offset, Vector3 &pos, Vector3 &dir, float &maxSpeed ) : void | ||
CustomStartPathFind ( ushort vehicleID, Vehicle &vehicleData, Vector3 startPos, Vector3 endPos, bool startBothWays, bool endBothWays, bool undergroundTarget ) : bool | ||
TrafficManagerSimulationStep ( ushort vehicleId, Vehicle &vehicleData, Vector3 physicsLodRefPos ) : void |
Lightweight simulation step method. This method is occasionally being called for different cars.
|
Method | Description | |
---|---|---|
CalcMaxSpeed ( ushort vehicleId, Vehicle &vehicleData, PathUnit position, Vector3 pos, float maxSpeed, bool isRecklessDriver ) : float | ||
IsRecklessDriver ( ushort vehicleId, Vehicle &vehicleData ) : bool | ||
OnLevelUnloading ( ) : void |
public CustomCalculateSegmentPosition ( ushort vehicleId, Vehicle &vehicleData, PathUnit nextPosition, PathUnit position, uint laneID, byte offset, PathUnit prevPos, uint prevLaneID, byte prevOffset, int index, Vector3 &pos, Vector3 &dir, float &maxSpeed ) : void | ||
vehicleId | ushort | |
vehicleData | Vehicle | |
nextPosition | PathUnit | |
position | PathUnit | |
laneID | uint | |
offset | byte | |
prevPos | PathUnit | |
prevLaneID | uint | |
prevOffset | byte | |
index | int | |
pos | Vector3 | |
dir | Vector3 | |
maxSpeed | float | |
return | void |
public CustomCalculateSegmentPositionPathFinder ( ushort vehicleId, Vehicle &vehicleData, PathUnit position, uint laneId, byte offset, Vector3 &pos, Vector3 &dir, float &maxSpeed ) : void | ||
vehicleId | ushort | |
vehicleData | Vehicle | |
position | PathUnit | |
laneId | uint | |
offset | byte | |
pos | Vector3 | |
dir | Vector3 | |
maxSpeed | float | |
return | void |
public CustomStartPathFind ( ushort vehicleID, Vehicle &vehicleData, Vector3 startPos, Vector3 endPos, bool startBothWays, bool endBothWays, bool undergroundTarget ) : bool | ||
vehicleID | ushort | |
vehicleData | Vehicle | |
startPos | Vector3 | |
endPos | Vector3 | |
startBothWays | bool | |
endBothWays | bool | |
undergroundTarget | bool | |
return | bool |
public TrafficManagerSimulationStep ( ushort vehicleId, Vehicle &vehicleData, Vector3 physicsLodRefPos ) : void | ||
vehicleId | ushort | |
vehicleData | Vehicle | |
physicsLodRefPos | Vector3 | |
return | void |