Table of Contents

Class SimulationObjectView

Namespace
KSP.Sim.impl
Assembly
Assembly-CSharp.dll
public class SimulationObjectView : KerbalMonoBehaviour, ISimulationObjectView
Inheritance
SimulationObjectView
Implements
Inherited Members
Extension Methods

Constructors

SimulationObjectView()

public SimulationObjectView()

Fields

TAG_DUMMY_VIEW_OBJECT

public const string TAG_DUMMY_VIEW_OBJECT = "Dummy ViewObject"

Field Value

string

Properties

CelestialBody

public CelestialBodyBehavior CelestialBody { get; }

Property Value

CelestialBodyBehavior

Colony

public ColonyBehavior Colony { get; }

Property Value

ColonyBehavior

CrewMember

public CrewMemberBehavior CrewMember { get; }

Property Value

CrewMemberBehavior

GameObjectAxis

public GameObject GameObjectAxis { get; }

Property Value

GameObject

IsDummy

public bool IsDummy { get; }

Property Value

bool

Kerbal

public KerbalBehavior Kerbal { get; }

Property Value

KerbalBehavior

Model

public SimulationObjectModel Model { get; set; }

Property Value

SimulationObjectModel

Name

public string Name { get; set; }

Property Value

string

Part

public PartBehavior Part { get; }

Property Value

PartBehavior

PartOwner

public PartOwnerBehavior PartOwner { get; }

Property Value

PartOwnerBehavior

PositionTrackSimObject

public bool PositionTrackSimObject { get; set; }

Property Value

bool

Rigidbody

public RigidbodyBehavior Rigidbody { get; }

Property Value

RigidbodyBehavior

ThermalBehavior

public ThermalBehavior ThermalBehavior { get; }

Property Value

ThermalBehavior

Universe

public IUniverseView Universe { get; }

Property Value

IUniverseView

Vessel

public VesselBehavior Vessel { get; }

Property Value

VesselBehavior

position

public Vector3 position { get; }

Property Value

Vector3

rotation

public Quaternion rotation { get; }

Property Value

Quaternion

Methods

CacheViewObjectComponent()

public void CacheViewObjectComponent()

CreateNewViewObject(IUniverseView, SimulationObjectModel)

public static SimulationObjectView CreateNewViewObject(IUniverseView universe, SimulationObjectModel model)

Parameters

universe IUniverseView
model SimulationObjectModel

Returns

SimulationObjectView

CreateNewViewObjectAsync(IUniverseView, SimulationObjectModel, Action<SimulationObjectView>)

public static void CreateNewViewObjectAsync(IUniverseView universe, SimulationObjectModel model, Action<SimulationObjectView> resultCallback)

Parameters

universe IUniverseView
model SimulationObjectModel
resultCallback Action<SimulationObjectView>

CreateNewViewObjectAsync(IUniverseView, SimulationObjectModel, Vector3, Quaternion, Action<SimulationObjectView>)

public static void CreateNewViewObjectAsync(IUniverseView universe, SimulationObjectModel model, Vector3 position, Quaternion rotation, Action<SimulationObjectView> resultCallback)

Parameters

universe IUniverseView
model SimulationObjectModel
position Vector3
rotation Quaternion
resultCallback Action<SimulationObjectView>

Destroy()

public void Destroy()

GetViewObjectComponent<T>()

public T GetViewObjectComponent<T>() where T : ViewObjectComponent

Returns

T

Type Parameters

T

RefreshViewTransform()

public void RefreshViewTransform()

SetGameObjectAxis(GameObject)

public void SetGameObjectAxis(GameObject gameObjectAxisNew)

Parameters

gameObjectAxisNew GameObject

TryGetViewObjectComponent<T>(out T)

public bool TryGetViewObjectComponent<T>(out T viewObjectComponent)

Parameters

viewObjectComponent T

Returns

bool

Type Parameters

T