Unity5, configurable Joint:anchor, Connected Anchor, Auto Configure Connected Anchor

Source: Internet
Author: User

Configurable joint is added to the wheel, connected body is the body.

In this case, anchor= (0,0,0) indicates that one end of the wheel joint the anchor point to take Carwheelcenter

Connected anchor= ( -0.699,-0.5,-0.5) indicates that one end of the body joint the anchor point fetch:

carbodycenter+ ( -0.699*d*carbodyxdir) + ( -0.5*d*carbodyydir) + ( -0.5*d*carbodyzdir)

where d is the body Cube side Center distance.

When the auto Configure Connected Anchor is checked, the engine automatically calculates the Connected anchor value as long as the anchor value is given.

For example, in this example, when anchor is taken (0,0,0), the automatically calculated connected anchor value is ( -0.699,-0.5,-0.5).

Why is this value calculated? Because Anchor= (0,0,0) represents the center of the wheel and transforms the center of the wheel into the body coordinate system, it is precisely ( -0.699*d,-0.5*d,-0.5*d) that the anchor coordinate of the wheel center point in the body coordinate system is ( -0.699,-0.5,-0.5).

It is also important to note:

1, to let Gameobject on the added collider can be displayed, you must add Rigidbody.

2, in order to find the body in the candidate list of the wheel connected body, the body must be added rigidbody.

Unity5, configurable Joint:anchor, Connected Anchor, Auto Configure Connected Anchor

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.