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

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

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

Метод Описание
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
CustomSimulationStep ( ushort vehicleId, Vehicle &vehicleData, Vector3 physicsLodRefPos ) : void
CustomStartPathFind ( ushort vehicleID, Vehicle &vehicleData, Vector3 startPos, Vector3 endPos, bool startBothWays, bool endBothWays ) : bool

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

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

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

public CustomSimulationStep ( ushort vehicleId, Vehicle &vehicleData, Vector3 physicsLodRefPos ) : void
vehicleId ushort
vehicleData Vehicle
physicsLodRefPos Vector3
Результат void

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

public CustomStartPathFind ( ushort vehicleID, Vehicle &vehicleData, Vector3 startPos, Vector3 endPos, bool startBothWays, bool endBothWays ) : bool
vehicleID ushort
vehicleData Vehicle
startPos Vector3
endPos Vector3
startBothWays bool
endBothWays bool
Результат bool