Class EntityWheel
- Namespace
- VoxelPlayground.Entity
- Assembly
- GamePlay.dll
public class EntityWheel : EntityAttachmentItem
- Inheritance
-
objectEntityWheel
- Inherited Members
- Extension Methods
Fields
autoDeactivateOnLostConnection
public bool autoDeactivateOnLostConnection
Field Value
- bool
maxAngularVelocity
public float maxAngularVelocity
Field Value
- float
torqueAmount
public float torqueAmount
Field Value
- float
wheelSuspensionJoint
public ConfigurableJoint wheelSuspensionJoint
Field Value
Properties
SteeringLimit
public float SteeringLimit { get; set; }
Property Value
- float
SuspensionHeight
public float SuspensionHeight { get; set; }
Property Value
- float
Methods
_SetSuspensionHeight(float)
public void _SetSuspensionHeight(float v)
Parameters
vfloat
ApplyAcceleration(float)
public void ApplyAcceleration(float acc)
Parameters
accfloat
ApplyTorque(float)
public void ApplyTorque(float torque)
Parameters
torquefloat
BreakConnection()
protected override void BreakConnection()
FixedUpdate()
public void FixedUpdate()
InitSteeringWheel(EntityCar)
public void InitSteeringWheel(EntityCar car)
Parameters
carEntityCar
RemoveConnection(EntityAttachmentItem)
public override void RemoveConnection(EntityAttachmentItem otherItem)
Parameters
otherItemEntityAttachmentItem
SetMaxAngularV(float)
public void SetMaxAngularV(float maxAngularV)
Parameters
maxAngularVfloat
SetSteering(float, float, float)
public void SetSteering(float steering, float steeringStrength, float steeringDamping)
Parameters
steeringfloatsteeringStrengthfloatsteeringDampingfloat
SetTorque(float)
public void SetTorque(float torque)
Parameters
torquefloat
Start()
protected override void Start()