C# Класс Kramax.VesselData

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

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

Свойство Тип Описание
AoA double
acceleration double
bank double
heading double
lastPlanetUp UnityEngine.Vector3d
obtNormal Vector3
obtRadial Vector3
pitch double
planetEast UnityEngine.Vector3d
planetNorth UnityEngine.Vector3d
planetUp UnityEngine.Vector3d
progradeHeading double
radarAlt double
srfNormal Vector3
srfRadial Vector3
surfVelForward UnityEngine.Vector3d
surfVelRight UnityEngine.Vector3d
surfVesForward UnityEngine.Vector3d
surfVesRight UnityEngine.Vector3d
velocity UnityEngine.Vector3d
vertSpeed double
yaw double

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

Метод Описание
VesselData ( ) : System
destroyArrow ( ) : void
drawArrow ( Vector3 dir, Transform t ) : void
findVesselFwdAxis ( Vessel v ) : void

Find the vessel orientation at the CoM by interpolating from surrounding part transforms This orientation should be significantly more resistant to vessel flex/wobble than the vessel transform (root part) as a free body rotates about it's CoM Has an issue with the origin shifter causing random bounces

updateAttitude ( Vessel vessel ) : void

Called in OnPreAutoPilotUpdate. Do not call multiple times per physics frame or the "lastPlanetUp" vector will not be correct and VSpeed will not be calculated correctly Can't just leave it to a Coroutine becuase it has to be called before anything else

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

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

public VesselData ( ) : System
Результат System

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

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

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

public drawArrow ( Vector3 dir, Transform t ) : void
dir Vector3
t UnityEngine.Transform
Результат void

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

Find the vessel orientation at the CoM by interpolating from surrounding part transforms This orientation should be significantly more resistant to vessel flex/wobble than the vessel transform (root part) as a free body rotates about it's CoM Has an issue with the origin shifter causing random bounces
public findVesselFwdAxis ( Vessel v ) : void
v Vessel
Результат void

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

Called in OnPreAutoPilotUpdate. Do not call multiple times per physics frame or the "lastPlanetUp" vector will not be correct and VSpeed will not be calculated correctly Can't just leave it to a Coroutine becuase it has to be called before anything else
public updateAttitude ( Vessel vessel ) : void
vessel Vessel
Результат void

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

AoA публичное свойство

public double AoA
Результат double

acceleration публичное свойство

public double acceleration
Результат double

bank публичное свойство

public double bank
Результат double

heading публичное свойство

public double heading
Результат double

lastPlanetUp публичное свойство

public Vector3d,UnityEngine lastPlanetUp
Результат UnityEngine.Vector3d

obtNormal публичное свойство

public Vector3 obtNormal
Результат Vector3

obtRadial публичное свойство

public Vector3 obtRadial
Результат Vector3

pitch публичное свойство

public double pitch
Результат double

planetEast публичное свойство

public Vector3d,UnityEngine planetEast
Результат UnityEngine.Vector3d

planetNorth публичное свойство

public Vector3d,UnityEngine planetNorth
Результат UnityEngine.Vector3d

planetUp публичное свойство

public Vector3d,UnityEngine planetUp
Результат UnityEngine.Vector3d

progradeHeading публичное свойство

public double progradeHeading
Результат double

radarAlt публичное свойство

public double radarAlt
Результат double

srfNormal публичное свойство

public Vector3 srfNormal
Результат Vector3

srfRadial публичное свойство

public Vector3 srfRadial
Результат Vector3

surfVelForward публичное свойство

public Vector3d,UnityEngine surfVelForward
Результат UnityEngine.Vector3d

surfVelRight публичное свойство

public Vector3d,UnityEngine surfVelRight
Результат UnityEngine.Vector3d

surfVesForward публичное свойство

public Vector3d,UnityEngine surfVesForward
Результат UnityEngine.Vector3d

surfVesRight публичное свойство

public Vector3d,UnityEngine surfVesRight
Результат UnityEngine.Vector3d

velocity публичное свойство

public Vector3d,UnityEngine velocity
Результат UnityEngine.Vector3d

vertSpeed публичное свойство

public double vertSpeed
Результат double

yaw публичное свойство

public double yaw
Результат double