C# Class Kramax.VesselData

Afficher le fichier Open project: Kramax/KramaxAutoPilot Class Usage Examples

Méthodes publiques

Свойство Type Description
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

Méthodes publiques

Méthode Description
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

Method Details

VesselData() public méthode

public VesselData ( ) : System
Résultat System

destroyArrow() public méthode

public destroyArrow ( ) : void
Résultat void

drawArrow() public méthode

public drawArrow ( Vector3 dir, Transform t ) : void
dir Vector3
t UnityEngine.Transform
Résultat void

findVesselFwdAxis() public méthode

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
Résultat void

updateAttitude() public méthode

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
Résultat void

Property Details

AoA public_oe property

public double AoA
Résultat double

acceleration public_oe property

public double acceleration
Résultat double

bank public_oe property

public double bank
Résultat double

heading public_oe property

public double heading
Résultat double

lastPlanetUp public_oe property

public Vector3d,UnityEngine lastPlanetUp
Résultat UnityEngine.Vector3d

obtNormal public_oe property

public Vector3 obtNormal
Résultat Vector3

obtRadial public_oe property

public Vector3 obtRadial
Résultat Vector3

pitch public_oe property

public double pitch
Résultat double

planetEast public_oe property

public Vector3d,UnityEngine planetEast
Résultat UnityEngine.Vector3d

planetNorth public_oe property

public Vector3d,UnityEngine planetNorth
Résultat UnityEngine.Vector3d

planetUp public_oe property

public Vector3d,UnityEngine planetUp
Résultat UnityEngine.Vector3d

progradeHeading public_oe property

public double progradeHeading
Résultat double

radarAlt public_oe property

public double radarAlt
Résultat double

srfNormal public_oe property

public Vector3 srfNormal
Résultat Vector3

srfRadial public_oe property

public Vector3 srfRadial
Résultat Vector3

surfVelForward public_oe property

public Vector3d,UnityEngine surfVelForward
Résultat UnityEngine.Vector3d

surfVelRight public_oe property

public Vector3d,UnityEngine surfVelRight
Résultat UnityEngine.Vector3d

surfVesForward public_oe property

public Vector3d,UnityEngine surfVesForward
Résultat UnityEngine.Vector3d

surfVesRight public_oe property

public Vector3d,UnityEngine surfVesRight
Résultat UnityEngine.Vector3d

velocity public_oe property

public Vector3d,UnityEngine velocity
Résultat UnityEngine.Vector3d

vertSpeed public_oe property

public double vertSpeed
Résultat double

yaw public_oe property

public double yaw
Résultat double