Version: Unity 6.7 Alpha (6000.7)
LanguageEnglish
  • C#

PhysicsWheelJointDefinition.autoAxis

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public bool autoAxis;

Description

When set, local anchor frame A's rotation is recomputed at create so the slide axis is the direction from anchor A to anchor B.

It is measured after any PhysicsWheelJointDefinition.autoAnchorA/PhysicsWheelJointDefinition.autoAnchorB resolution, so it reflects the anchors actually used. It is applied at create only; the authored PhysicsWheelJointDefinition.localAnchorA rotation is ignored while this is set. Anchors that coincide in world space (an auto anchor places them together) have no direction, so the world X axis is used.