Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PhysicsWheelJointDefinition

A joint definition used to specify properties when creating a PhysicsWheelJoint.
Read time 1 minuteLast updated 13 days ago

Definition

public struct PhysicsWheelJointDefinition

Constructors

Constructor

Description

PhysicsWheelJointDefinition()Create a default PhysicsWheelJoint definition.
PhysicsWheelJointDefinition(System.Boolean)Create a default PhysicsWheelJoint] definition.

Properties

Property

Description

bodyAThe first body the joint constrains.
bodyBThe second body the joint constrains.
collideConnectedWhether the shapes on the pair of bodies can come into contact.
drawScaleControls the scaling of the joint drawing. Not all joints have scalable elements but those that do will use this scaling.
enableLimitEnable/disable the joint translation limit.
enableMotorEnable/disable the joint motor.
enableSpringEnable/Disable a spring along the joint axis.
forceThresholdThe force threshold beyond which a joint event will be produced.
localAnchorAThe local anchor frame constraint relative to bodyA's origin.
localAnchorBThe local anchor frame constraint relative to bodyB's origin.
lowerTranslationLimitThe lower translation limit.
maxMotorTorqueThe maximum torque the motor can apply, usually in newton-meters.
motorSpeedThe desired motor speed, usually in degrees per second.
springDampingThe spring damping, non-dimensional. Use 1 for critical damping.
springFrequencyThe spring stiffness frequency, in cycles per second.
torqueThresholdThe torque threshold beyond which a joint event will be produced.
tuningDampingControls the joint stiffness damping, non-dimensional. Use 1 for critical damping.
tuningFrequencyControls the joint stiffness frequency, in cycles per second.
upperTranslationLimitThe upper translation limit.

Static Properties

Property

Description

defaultDefinitionGet a default PhysicsWheelJoint definition.