Class WheelCollider
Inheritance
WheelCollider
Assembly: UnityEngine.dll
Syntax
public class WheelCollider : Collider
Properties
brakeTorque
Declaration
public float brakeTorque { get; set; }
Property Value
center
Declaration
public Vector3 center { get; set; }
Property Value
forceAppPointDistance
Declaration
public float forceAppPointDistance { get; set; }
Property Value
forwardFriction
Declaration
public WheelFrictionCurve forwardFriction { get; set; }
Property Value
isGrounded
Declaration
public bool isGrounded { get; }
Property Value
mass
Declaration
public float mass { get; set; }
Property Value
motorTorque
Declaration
public float motorTorque { get; set; }
Property Value
radius
Declaration
public float radius { get; set; }
Property Value
rpm
Declaration
public float rpm { get; }
Property Value
sidewaysFriction
Declaration
public WheelFrictionCurve sidewaysFriction { get; set; }
Property Value
sprungMass
Declaration
public float sprungMass { get; }
Property Value
steerAngle
Declaration
public float steerAngle { get; set; }
Property Value
suspensionDistance
Declaration
public float suspensionDistance { get; set; }
Property Value
suspensionSpring
Declaration
public JointSpring suspensionSpring { get; set; }
Property Value
wheelDampingRate
Declaration
public float wheelDampingRate { get; set; }
Property Value
Methods
Declaration
public void ConfigureVehicleSubsteps(float speedThreshold, int stepsBelowThreshold, int stepsAboveThreshold)
Parameters
Type |
Name |
Description |
Single |
speedThreshold |
|
Int32 |
stepsBelowThreshold |
|
Int32 |
stepsAboveThreshold |
|
GetGroundHit(out WheelHit)
Declaration
public bool GetGroundHit(out WheelHit hit)
Parameters
Returns
GetWorldPose(out Vector3, out Quaternion)
Declaration
public void GetWorldPose(out Vector3 pos, out Quaternion quat)
Parameters
Extension Methods