C# Class MotionBaseMover, gmap377_leathGloves_inc

Inheritance: MonoBehaviour
Show file Open project: bi3mer/gmap377_leathGloves_inc Class Usage Examples

Public Properties

Property Type Description
ANGLE_LERP_FACTOR float
ArtificialInducedPitch float
EPSILON float
Instance MotionBaseMover,
MAX_PITCH_ANGLE float
PhysicsInducedPitch float
PhysicsInducedRoll float
TargetArtificialRotation Vector3
TargetPhysicsRotation Vector3
TargetRotation Vector3

Public Methods

Method Description
InduceArtificialPitch ( float pitchPercent ) : void

Add a front-to-back tilt to the motion base that does not represent an actual physical movement by the player ship. Enter a percentage of the max tilt, with negative numbers leaning left and positive numbers leaning right ([-1, 1]).

InduceArtificialRoll ( float tiltPercent ) : void

Add a left-to-right tilt to the motion base that does not represent an actual physical movement by the player ship. Enter a percentage of the max tilt, with negative numbers leaning left and positive numbers leaning right ([-1, 1]).

InducePhysicsPitch ( float pitchPercent ) : void

Add a front-to-back tilt to the motion base that does represents an actual physical movement by the player ship. Enter a percentage of the max tilt, with negative numbers leaning left and positive numbers leaning right ([-1, 1]).

InducePhysicsRoll ( float tiltPercent ) : void

Add a left-to-right tilt to the motion base that represents an actual physical movement by the player ship. Enter a percentage of the max tilt, with negative numbers leaning left and positive numbers leaning right ([-1, 1]).

Private Methods

Method Description
Awake ( ) : void
LateUpdate ( ) : void
Start ( ) : void
Update ( ) : void

Method Details

InduceArtificialPitch() public method

Add a front-to-back tilt to the motion base that does not represent an actual physical movement by the player ship. Enter a percentage of the max tilt, with negative numbers leaning left and positive numbers leaning right ([-1, 1]).
public InduceArtificialPitch ( float pitchPercent ) : void
pitchPercent float [-1, 1]
return void

InduceArtificialRoll() public method

Add a left-to-right tilt to the motion base that does not represent an actual physical movement by the player ship. Enter a percentage of the max tilt, with negative numbers leaning left and positive numbers leaning right ([-1, 1]).
public InduceArtificialRoll ( float tiltPercent ) : void
tiltPercent float [-1, 1]
return void

InducePhysicsPitch() public method

Add a front-to-back tilt to the motion base that does represents an actual physical movement by the player ship. Enter a percentage of the max tilt, with negative numbers leaning left and positive numbers leaning right ([-1, 1]).
public InducePhysicsPitch ( float pitchPercent ) : void
pitchPercent float [-1, 1]
return void

InducePhysicsRoll() public method

Add a left-to-right tilt to the motion base that represents an actual physical movement by the player ship. Enter a percentage of the max tilt, with negative numbers leaning left and positive numbers leaning right ([-1, 1]).
public InducePhysicsRoll ( float tiltPercent ) : void
tiltPercent float [-1, 1]
return void

Property Details

ANGLE_LERP_FACTOR public property

public float ANGLE_LERP_FACTOR
return float

ArtificialInducedPitch public property

public float ArtificialInducedPitch
return float

EPSILON public property

public float EPSILON
return float

Instance public static property

public static MotionBaseMover, Instance
return MotionBaseMover,

MAX_PITCH_ANGLE public property

public float MAX_PITCH_ANGLE
return float

PhysicsInducedPitch public property

public float PhysicsInducedPitch
return float

PhysicsInducedRoll public property

public float PhysicsInducedRoll
return float

TargetArtificialRotation public property

public Vector3 TargetArtificialRotation
return Vector3

TargetPhysicsRotation public property

public Vector3 TargetPhysicsRotation
return Vector3

TargetRotation public property

public Vector3 TargetRotation
return Vector3