C# Класс TrafficManager.Custom.AI.CustomCarAI

Наследование: CarAI
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
MaxPriorityWaitTime int

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
CalcMaxSpeed ( ushort vehicleId, Vehicle &vehicleData, PathUnit position, Vector3 pos, float maxSpeed, bool isRecklessDriver ) : float
IsRecklessDriver ( ushort vehicleId, Vehicle &vehicleData ) : bool
OnLevelUnloading ( ) : void

Описание методов

Awake() публичный Метод

public Awake ( ) : void
Результат void

CustomCalculateSegmentPosition() публичный Метод

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
Результат void

CustomCalculateSegmentPositionPathFinder() публичный Метод

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
Результат void

CustomStartPathFind() публичный Метод

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
Результат bool

TrafficManagerSimulationStep() публичный Метод

Lightweight simulation step method. This method is occasionally being called for different cars.
public TrafficManagerSimulationStep ( ushort vehicleId, Vehicle &vehicleData, Vector3 physicsLodRefPos ) : void
vehicleId ushort
vehicleData Vehicle
physicsLodRefPos Vector3
Результат void

Описание свойств

MaxPriorityWaitTime публичное статическое свойство

public static int MaxPriorityWaitTime
Результат int