Class KerbalBehavior
- Namespace
- KSP.Sim.impl
- Assembly
- Assembly-CSharp.dll
public class KerbalBehavior : ViewObjectComponent<KerbalComponent>, IFixedUpdate, IUpdate, ILateUpdate, IPriorityOverride
- Inheritance
-
KerbalBehavior
- Implements
-
- Inherited Members
-
- Extension Methods
-
Constructors
KerbalBehavior()
Fields
CharacterCapsuleBottomPos
public Vector3 CharacterCapsuleBottomPos
Field Value
- Vector3
CharacterState
public KerbalCharacterState CharacterState
Field Value
- KerbalCharacterState
DefaultCapsuleColliderHeight
public float DefaultCapsuleColliderHeight
Field Value
- float
DefaultCapsuleColliderRadius
public float DefaultCapsuleColliderRadius
Field Value
- float
EVAAnimationState
public EVAKerbalAnimationState EVAAnimationState
Field Value
- EVAKerbalAnimationState
ForceUpdateFallingRequested
public bool ForceUpdateFallingRequested
Field Value
- bool
ForceUpdateUnderwaterRequested
public bool ForceUpdateUnderwaterRequested
Field Value
- bool
GravityMultiplier
public float GravityMultiplier
Field Value
- float
public Vector3 GroundFutureContactNormal
Field Value
- Vector3
public Vector3 GroundPresentContactNormalSmoothed
Field Value
- Vector3
public Vector3 GroundPresentFutureContactNormalAverage
Field Value
- Vector3
HorizonUp
Field Value
- Vector3
LastMoveBestUpSurfaceWorldSpace
public Vector3 LastMoveBestUpSurfaceWorldSpace
Field Value
- Vector3
LastMoveOnGroundWorldSpace
public Vector3 LastMoveOnGroundWorldSpace
Field Value
- Vector3
OnPlantFlagAllowedChanged
public Action<bool> OnPlantFlagAllowedChanged
Field Value
- Action<bool>
PhysicsCastLayerMask
public static readonly LayerMask PhysicsCastLayerMask
Field Value
- LayerMask
RotateForwardAngularVelocity
public Vector3 RotateForwardAngularVelocity
Field Value
- Vector3
RotateJetpackAngularVelocity
public Vector3 RotateJetpackAngularVelocity
Field Value
- Vector3
RotateUprightAngularVelocity
public Vector3 RotateUprightAngularVelocity
Field Value
- Vector3
Properties
CharacterCapsuleCollider
public CapsuleCollider CharacterCapsuleCollider { get; }
Property Value
- CapsuleCollider
CharacterCurrentLocomotionHandlerType
public KerbalCharacterStateHandlerType CharacterCurrentLocomotionHandlerType { get; set; }
Property Value
- KerbalCharacterStateHandlerType
EVAAnimationManager
public AnimationManager_EVA EVAAnimationManager { get; }
Property Value
- AnimationManager_EVA
EVAJetpackVFXManager
public JetpackVFXManager EVAJetpackVFXManager { get; }
Property Value
- JetpackVFXManager
GroundFutureCollisionResult
public CollisionResult GroundFutureCollisionResult { get; }
Property Value
- CollisionResult
GroundPresentCollisionResult
public CollisionResult GroundPresentCollisionResult { get; }
Property Value
- CollisionResult
IsInitialized
public bool IsInitialized { get; }
Property Value
- bool
public bool IsInputMovingStrafeOnly { get; }
Property Value
- bool
IsStaticFrictionActive
public bool IsStaticFrictionActive { get; }
Property Value
- bool
IsStrafeMode
public bool IsStrafeMode { get; }
Property Value
- bool
KerbalModule
public Module_Kerbal KerbalModule { get; }
Property Value
- Module_Kerbal
KerbalRigidbody
public Rigidbody KerbalRigidbody { get; }
Property Value
- Rigidbody
KerbalRigidbodyBehavior
public RigidbodyBehavior KerbalRigidbodyBehavior { get; }
Property Value
- RigidbodyBehavior
MainPart
public PartBehavior MainPart { get; }
Property Value
- PartBehavior
Model
public KerbalComponent Model { get; }
Property Value
- KerbalComponent
WaterCollisionResult
public CollisionResult WaterCollisionResult { get; }
Property Value
- CollisionResult
Methods
Cleanup()
GetBestUp()
public Vector3 GetBestUp()
Returns
- Vector3
GetWaterDetectPosition()
public Vector3 GetWaterDetectPosition()
Returns
- Vector3
IsFallingAboveHighAltitude()
public bool IsFallingAboveHighAltitude()
Returns
- bool
public bool IsInputAllowed()
Returns
- bool
IsMovingInGroundPlane()
public bool IsMovingInGroundPlane()
Returns
- bool
IsOnGround()
Returns
- bool
IsToggleJetpackAllowed()
public bool IsToggleJetpackAllowed()
Returns
- bool
IsTogglingJetpack()
public bool IsTogglingJetpack()
Returns
- bool
OnToggleJetpack()
public void OnToggleJetpack()
PlantFlag(FlagComponentDefinition)
public void PlantFlag(FlagComponentDefinition definition)
Parameters
definition FlagComponentDefinition
ProcessRotateForward(Vector3, float, float, float)
public void ProcessRotateForward(Vector3 desiredForward, float rotateAngularSpeed, float rotateChangeAngularSpeed, float deltaTime)
Parameters
desiredForward Vector3
rotateAngularSpeed float
rotateChangeAngularSpeed float
deltaTime float
ResetRotateForward()
public void ResetRotateForward()
public void SetContactObjectRelativeVelocity(Vector3 velocity)
Parameters
velocity Vector3
SetGravityDisabled(bool)
public void SetGravityDisabled(bool disabled)
Parameters
disabled bool
SetLadderUpPosOffsetSigned(float)
public void SetLadderUpPosOffsetSigned(float ladderUpPosOffsetSigned)
Parameters
ladderUpPosOffsetSigned float
SyncTo(KerbalComponent)
public override void SyncTo(KerbalComponent simObjectComponent)
Parameters
simObjectComponent KerbalComponent
TryClimbLadderPartId(IGGuid, bool)
public bool TryClimbLadderPartId(IGGuid ladderPartId, bool tweenTo)
Parameters
ladderPartId IGGuid
tweenTo bool
Returns
- bool
TryPlantFlag()
public void TryPlantFlag()