Class MotionModel
- Namespace
- KSP.Sim.impl
- Assembly
- Assembly-CSharp.dll
public class MotionModel : IMotionModelInternal, IMotionModel, IMotionRelative
- Inheritance
-
MotionModel
- Implements
-
- Inherited Members
-
- Extension Methods
-
Constructors
public MotionModel(ITransformModel transform)
Parameters
transform ITransformModel
Properties
AngularMotionDriver
public IAngularMotionDriver AngularMotionDriver { get; set; }
Property Value
- IAngularMotionDriver
AngularVelocity
public AngularVelocity AngularVelocity { get; }
Property Value
- AngularVelocity
LinearMotionDriver
public ILinearMotionDriver LinearMotionDriver { get; set; }
Property Value
- ILinearMotionDriver
Velocity
public Velocity Velocity { get; }
Property Value
- Velocity
bodyMotionFrame
public IMotionFrame bodyMotionFrame { get; }
Property Value
- IMotionFrame
celestialMotionFrame
public IMotionFrame celestialMotionFrame { get; }
Property Value
- IMotionFrame
launchMotionFrame
public IMotionFrame launchMotionFrame { get; }
Property Value
- IMotionFrame
parentMotionFrame
public IMotionFrame parentMotionFrame { get; }
Property Value
- IMotionFrame
relativeAngularVelocity
public Vector relativeAngularVelocity { get; set; }
Property Value
- Vector
relativeToMotion
public IMotion relativeToMotion { get; }
Property Value
- IMotion
relativeVelocity
public Vector relativeVelocity { get; set; }
Property Value
- Vector
public ITransformModel transform { get; }
Property Value
- ITransformModel
Methods
GetSimObjectParentMotionFrame()
public IMotionFrame GetSimObjectParentMotionFrame()
Returns
- IMotionFrame
GetSimSOIBodyParentMotionFrame()
public IMotionFrame GetSimSOIBodyParentMotionFrame()
Returns
- IMotionFrame
MakeRelativeTo(IMotionFrame, Position, Velocity, AngularVelocity)
public void MakeRelativeTo(IMotionFrame newParent, Position withPosition, Velocity withVelocity, AngularVelocity withAngularVelocity)
Parameters
newParent IMotionFrame
withPosition Position
withVelocity Velocity
withAngularVelocity AngularVelocity
SetAngularVelocity(AngularVelocity)
public void SetAngularVelocity(AngularVelocity angularVelocity)
Parameters
angularVelocity AngularVelocity
SetVelocity(Velocity)
public void SetVelocity(Velocity newVelocity)
Parameters
newVelocity Velocity