Quantcast
Channel: Questions in topic: "wheelcollider"
Viewing all articles
Browse latest Browse all 490

Making mesh rotate with WheelCollider

$
0
0
So this may be a simple question, but I really can't seem to figure it out. I searched all over google for this, but alot of them were just linking to youtube tutorials, which showed some script from another tutorial, and messed the whole thing up, by using another script.. So I have 4 wheel colliders, which I can turn. Now I want the meshes, to turn with the wheel colliders. This is my hierarchy: Vehicle: WheelMeshRightFront WheelMeshLeftFront WheelMeshLeftBack WheelMeshRightBack WheelColliderRightFront WheelColliderLeftFront WheelColliderLeftBack WheelColliderRightBack So this should be all set up. I'm simply asking for some hint to, how to turn the mesh with the wheels? I've read something about using eularAngles, and then set it on the mesh, but I just can't figure out how you do that.. Any answers to this? Feel free to ask about anything related to my scripts or setup. Thanks!

Viewing all articles
Browse latest Browse all 490

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>