C# Class SkateMovement, Unity3D

Inheritance: MonoBehaviour
ファイルを表示 Open project: k-lock/Unity3D Class Usage Examples

Public Properties

Property Type Description
GearRatio float[]
_layersChecked LayerMask
_textures Texture[]
camEulerX float
camEulerY float
cameras Camera[]
distance float
distanceMax float
distanceMin float
height float
heightDamping float
rotationDamping float
skater Transform
suspensionDamper float
suspensionFrontSpring float
suspensionRange float
suspensionRearSpring float
wheelRadius float
wheels WheelCollider[]

Private Properties

Property Type Description
RampChecker bool
WheelColliderGrounded bool

Public Methods

Method Description
ApplySteering ( Vector3 relativeVelocity ) : void
ApplyThrottle ( ) : void
ApplyVelocity ( ) : void
Awake ( ) : void
CameraActivator ( ) : void
CameraAdjust ( Transform camera ) : void
CameraCollision ( Transform camera ) : void
CheckMotorTorque ( ) : void
CopingCheck ( ) : void
DirectionCorrecter ( ) : void
GUI_Board ( ) : void
GUI_INFO_LABELS ( ) : void
GetInput ( ) : void
LateUpdate ( ) : void
OnGUI ( ) : void
RampCollisionObject ( Transform hiter ) : void
SetupWheelCollider ( WheelCollider wc, bool isLeft, bool isFront ) : void
SetupWheelColliders ( ) : void
SetupWheelFrictionCurve ( ) : void
Start ( ) : void
Update ( ) : void

Private Methods

Method Description
RampChecker ( ) : bool
WheelColliderGrounded ( ) : bool

Method Details

ApplySteering() public method

public ApplySteering ( Vector3 relativeVelocity ) : void
relativeVelocity Vector3
return void

ApplyThrottle() public method

public ApplyThrottle ( ) : void
return void

ApplyVelocity() public method

public ApplyVelocity ( ) : void
return void

Awake() public method

public Awake ( ) : void
return void

CameraActivator() public method

public CameraActivator ( ) : void
return void

CameraAdjust() public method

public CameraAdjust ( Transform camera ) : void
camera Transform
return void

CameraCollision() public method

public CameraCollision ( Transform camera ) : void
camera Transform
return void

CheckMotorTorque() public method

public CheckMotorTorque ( ) : void
return void

CopingCheck() public method

public CopingCheck ( ) : void
return void

DirectionCorrecter() public method

public DirectionCorrecter ( ) : void
return void

GUI_Board() public method

public GUI_Board ( ) : void
return void

GUI_INFO_LABELS() public method

public GUI_INFO_LABELS ( ) : void
return void

GetInput() public method

public GetInput ( ) : void
return void

LateUpdate() public method

public LateUpdate ( ) : void
return void

OnGUI() public method

public OnGUI ( ) : void
return void

RampCollisionObject() public method

public RampCollisionObject ( Transform hiter ) : void
hiter Transform
return void

SetupWheelCollider() public method

public SetupWheelCollider ( WheelCollider wc, bool isLeft, bool isFront ) : void
wc WheelCollider
isLeft bool
isFront bool
return void

SetupWheelColliders() public method

public SetupWheelColliders ( ) : void
return void

SetupWheelFrictionCurve() public method

public SetupWheelFrictionCurve ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

GearRatio public_oe property

public float[] GearRatio
return float[]

_layersChecked public_oe property

public LayerMask _layersChecked
return LayerMask

_textures public_oe property

public Texture[] _textures
return Texture[]

camEulerX public_oe property

public float camEulerX
return float

camEulerY public_oe property

public float camEulerY
return float

cameras public_oe property

public Camera[] cameras
return Camera[]

distance public_oe property

public float distance
return float

distanceMax public_oe property

public float distanceMax
return float

distanceMin public_oe property

public float distanceMin
return float

height public_oe property

public float height
return float

heightDamping public_oe property

public float heightDamping
return float

rotationDamping public_oe property

public float rotationDamping
return float

skater public_oe property

public Transform skater
return Transform

suspensionDamper public_oe property

public float suspensionDamper
return float

suspensionFrontSpring public_oe property

public float suspensionFrontSpring
return float

suspensionRange public_oe property

public float suspensionRange
return float

suspensionRearSpring public_oe property

public float suspensionRearSpring
return float

wheelRadius public_oe property

public float wheelRadius
return float

wheels public_oe property

public WheelCollider[] wheels
return WheelCollider[]