Wednesday, 27 August 2014

Unity3D - Collision Part 2


Wheel Collider

The Wheel Collider is a special collider for grounded vehicles. It has built-in collision detection, wheel physics, and a slip-based tire friction model. It can be used for objects other than wheels, but it is specifically designed for vehicles with wheels.



PROPERTIES


CenterCenter of the wheel in object local space.
RadiusRadius of the wheel.
Suspension DistanceMaximum extension distance of wheel suspension, measured in local space. Suspension always extends downwards through the local Y-axis.
Suspension SpringThe suspension attempts to reach a Target Position by adding spring and damping forces.
SpringSpring force attempts to reach the Target Position. A larger value makes the suspension reach the Target Position faster.
DamperDampens the suspension velocity. A larger value makes the Suspension Spring move slower.
Target PositionThe suspension's rest distance along Suspension Distance. 0 maps to fully extended suspension, and 1 maps to fully compressed suspension. Default value is zero, which matches the behavior of a regular car's suspension.
MassThe Mass of the wheel.
Forward/Sideways FrictionProperties of tire friction when the wheel is rolling forward and sideways.

No comments:

Post a Comment