Table of Contents

Class VesselBehavior

Namespace
KSP.Sim.impl
Assembly
Assembly-CSharp.dll
public class VesselBehavior : ViewObjectComponent<VesselComponent>, IPhysicsDebuggable, IUpdate, IFixedUpdate, IPriorityOverride, ILateUpdate
Inheritance
VesselBehavior
Implements
Inherited Members
Extension Methods

Constructors

VesselBehavior()

public VesselBehavior()

Fields

ControlTransform

public Transform ControlTransform

Field Value

Transform

ShowCenterOfMass

public bool ShowCenterOfMass

Field Value

bool

partWithGroundContact

protected PartBehavior partWithGroundContact

Field Value

PartBehavior

Properties

AtmosphericFxSystem

public AtmosphericFxSystem AtmosphericFxSystem { get; }

Property Value

AtmosphericFxSystem

Autopilot

public VesselAutopilot Autopilot { get; }

Property Value

VesselAutopilot

BoundingBox

public Bounds BoundingBox { get; }

Property Value

Bounds

BoundingSphere

public BoundingSphere BoundingSphere { get; }

Property Value

BoundingSphere

CollisionManager

public CollisionManager CollisionManager { get; }

Property Value

CollisionManager

Model

public VesselComponent Model { get; }

Property Value

VesselComponent

ModelType

public Type ModelType { get; }

Property Value

Type

PartOwner

public PartOwnerBehavior PartOwner { get; }

Property Value

PartOwnerBehavior

PartWithGroundContact

public PartBehavior PartWithGroundContact { get; }

Property Value

PartBehavior

SuspensionBalancer

public SuspensionLoadBalancer SuspensionBalancer { get; }

Property Value

SuspensionLoadBalancer

flightCtrlState

public FlightCtrlState flightCtrlState { get; }

Property Value

FlightCtrlState

parts

public IEnumerable<PartBehavior> parts { get; }

Property Value

IEnumerable<PartBehavior>

Methods

CheckIfVesselIsBraking()

public bool CheckIfVesselIsBraking()

Returns

bool

CheckSetLanded()

public bool CheckSetLanded()

Returns

bool

Cleanup()

public void Cleanup()

DebugForceAtRest()

public void DebugForceAtRest()

DebugForceOrbital()

public void DebugForceOrbital()

DebugForcePackVessel()

public void DebugForcePackVessel()

DebugForceStopVesselPhysX()

public void DebugForceStopVesselPhysX()

DebugForceUnpackVessel()

public void DebugForceUnpackVessel()

Debug_SetPhysicsMode(PhysicsMode, bool, bool)

public void Debug_SetPhysicsMode(PhysicsMode vesselPhysics, bool isPhysXEnabled, bool isUnpacked)

Parameters

vesselPhysics PhysicsMode
isPhysXEnabled bool
isUnpacked bool

GetVesselPrelaunchData()

public VesselPrelaunchData GetVesselPrelaunchData()

Returns

VesselPrelaunchData

HandleCollisionEnter(CollisionDetails)

public static void HandleCollisionEnter(CollisionDetails collisionData)

Parameters

collisionData CollisionDetails

HandleCollisionExit(CollisionDetails)

public static void HandleCollisionExit(CollisionDetails collisionData)

Parameters

collisionData CollisionDetails

HandleCollisionStay(CollisionDetails)

public static void HandleCollisionStay(CollisionDetails collisionData)

Parameters

collisionData CollisionDetails

IsUnpacked()

public bool IsUnpacked()

Returns

bool

IsVesselAtRest()

public bool IsVesselAtRest()

Returns

bool

OnFixedUpdate(float)

public void OnFixedUpdate(float deltaTime)

Parameters

deltaTime float

OnLateUpdate()

public void OnLateUpdate()

OnUpdate(float)

public void OnUpdate(float deltaTime)

Parameters

deltaTime float

RenameVessel()

public void RenameVessel()

ResetSAS()

public void ResetSAS()

SetSasPIDs(Vector4d, Vector4d, Vector4d)

public void SetSasPIDs(Vector4d Pitch, Vector4d Roll, Vector4d Yaw)

Parameters

Pitch Vector4d
Roll Vector4d
Yaw Vector4d

SyncTo(VesselComponent)

public override void SyncTo(VesselComponent simObjectComponent)

Parameters

simObjectComponent VesselComponent

UpdatePartWithGroundContact()

public void UpdatePartWithGroundContact()

Events

OnAutopilotUpdate

public event FlightInputCallback OnAutopilotUpdate

Event Type

FlightInputCallback

OnFlyByWire

public event FlightInputCallback OnFlyByWire

Event Type

FlightInputCallback

OnPostAutopilotUpdate

public event FlightInputCallback OnPostAutopilotUpdate

Event Type

FlightInputCallback

OnPreAutopilotUpdate

public event FlightInputCallback OnPreAutopilotUpdate

Event Type

FlightInputCallback