Выберите подходящий для вас язык программирования. Все примеры кода будут представлены на выбранном языке.
struct in UnityEngine
Благодарим вас за то, что вы помогаете нам улучшить качество документации по Unity. Однако, мы не можем принять любой перевод. Мы проверяем каждый предложенный вами вариант перевода и принимаем его только если он соответствует оригиналу.
ЗакрытьПо определённым причинам предложенный вами перевод не может быть принят. Пожалуйста <a>попробуйте снова</a> через пару минут. И выражаем вам свою благодарность за то, что вы уделяете время, чтобы улучшить документацию по Unity.
ЗакрытьContact information for the wheel, reported by WheelCollider.
Friction for the WheelCollider is computed separately from the rest of the physics, using
a slip based tire friction model. This allows for more realistic behaviour, but makes
wheel colliders ignore standard PhysicMaterial settings.
The way to simulate different ground materials is to query WheelCollider for its collision
information (see WheelCollider.GetGroundHit). Usually, you get the other collider the wheel
is hitting, and modify the wheel's WheelCollider.forwardFriction and WheelCollider.sidewaysFriction
based on the physic material of the ground.
The other members of the WheelHit structure are usually queried for information purposes or special
effects. For example, a "slipping tire" sound can be played if forwardSlip or sidewaysSlip
превышает некоторый порог.
See Also: WheelCollider.GetGroundHit.
collider | The other Collider the wheel is hitting. |
force | The magnitude of the force being applied for the contact. |
forwardDir | The direction the wheel is pointing in. |
forwardSlip | Tire slip in the rolling direction. Acceleration slip is negative, braking slip is positive. |
normal | Нормаль в точке контакта. |
point | Точка контакта между колесом и землей. |
sidewaysDir | Боковое направление колеса. |
sidewaysSlip | Скольжения шин в боковом направлении. |