Wheel Collider 与轮子 GameObject 有不同的旋转 [英] Wheel Collider has different rotation with the wheel GameObject

查看:34
本文介绍了Wheel Collider 与轮子 GameObject 有不同的旋转的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的车轮上添加一个车轮碰撞器,但它可以旋转 90 度.

I want to add a wheel collider in my car wheel but it comes with 90-degree rotation.

这是图片:

如何将碰撞器调整到车轮上?

How can I adjust the collider to the car wheel?

推荐答案

为了进一步参考,我写下我的评论作为答案.

For further reference, i am writing down my comment as answer.

我能想到的最简单的解决方案是;添加一个空的 gameObject.将轮对撞机附加到那个空的 gameObject.并将空的 gameObject 子节点设置为您的汽车方向盘.有了这个,你可以旋转空的 gameObject ,这样你的碰撞器就会旋转.@Programmer 还分享了一个关于 WheelCollider 教程的链接.可以在此处

Simplest solution that i can think of is; add an empty gameObject. Attach wheel collider to that empty gameObject. And make the empty gameObject child to your car's wheel. With this you can rotate the empty gameObject so that your collider will be rotate. @Programmer also shared a link about WheelCollider Tutorial. Which can be found here

这篇关于Wheel Collider 与轮子 GameObject 有不同的旋转的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆