C# Class MotionBaseMover, gmap377_leathGloves_inc

Inheritance: MonoBehaviour
Exibir arquivo 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_oe property

public float ANGLE_LERP_FACTOR
return float

ArtificialInducedPitch public_oe property

public float ArtificialInducedPitch
return float

EPSILON public_oe property

public float EPSILON
return float

Instance public_oe static_oe property

public static MotionBaseMover, Instance
return MotionBaseMover,

MAX_PITCH_ANGLE public_oe property

public float MAX_PITCH_ANGLE
return float

PhysicsInducedPitch public_oe property

public float PhysicsInducedPitch
return float

PhysicsInducedRoll public_oe property

public float PhysicsInducedRoll
return float

TargetArtificialRotation public_oe property

public Vector3 TargetArtificialRotation
return Vector3

TargetPhysicsRotation public_oe property

public Vector3 TargetPhysicsRotation
return Vector3

TargetRotation public_oe property

public Vector3 TargetRotation
return Vector3