C# Класс MotionBaseMover, gmap377_leathGloves_inc

Наследование: MonoBehaviour
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
ANGLE_LERP_FACTOR float
ArtificialInducedPitch float
EPSILON float
Instance MotionBaseMover,
MAX_PITCH_ANGLE float
PhysicsInducedPitch float
PhysicsInducedRoll float
TargetArtificialRotation Vector3
TargetPhysicsRotation Vector3
TargetRotation Vector3

Открытые методы

Метод Описание
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]).

Приватные методы

Метод Описание
Awake ( ) : void
LateUpdate ( ) : void
Start ( ) : void
Update ( ) : void

Описание методов

InduceArtificialPitch() публичный Метод

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]
Результат void

InduceArtificialRoll() публичный Метод

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]
Результат void

InducePhysicsPitch() публичный Метод

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]
Результат void

InducePhysicsRoll() публичный Метод

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]
Результат void

Описание свойств

ANGLE_LERP_FACTOR публичное свойство

public float ANGLE_LERP_FACTOR
Результат float

ArtificialInducedPitch публичное свойство

public float ArtificialInducedPitch
Результат float

EPSILON публичное свойство

public float EPSILON
Результат float

Instance публичное статическое свойство

public static MotionBaseMover, Instance
Результат MotionBaseMover,

MAX_PITCH_ANGLE публичное свойство

public float MAX_PITCH_ANGLE
Результат float

PhysicsInducedPitch публичное свойство

public float PhysicsInducedPitch
Результат float

PhysicsInducedRoll публичное свойство

public float PhysicsInducedRoll
Результат float

TargetArtificialRotation публичное свойство

public Vector3 TargetArtificialRotation
Результат Vector3

TargetPhysicsRotation публичное свойство

public Vector3 TargetPhysicsRotation
Результат Vector3

TargetRotation публичное свойство

public Vector3 TargetRotation
Результат Vector3