Do you know how to set up the tyres of the car in Maya? I mean, I need that the tyres turn when the car is moving and then, when the car stops, the tyres stop they turn.
Have I to make the tyres apart? in a separate file an then, attach to the main model?
Can I made the entire car within Maya and use it insite Unity with that feature?
You should be able to just make them a seprate object in the same scene. I think that a lot of games dont actually rotate the tire, but instead they put a ainimated texture on the tire and controll the speed of the animation. Then you use ray casts instead of rigid bodys for the tire physics.
Btw, does maya support animated textures? …haven’t tried.
Heh, no prob. My spelling is usually less then par.
A ray cast is just a line that is casted from one point to any direction. You can check out rays here. You use ray casts for a lot of things, but in your case I think you would cast a ray down from each wheel origin and based on the distance place the car at the appropriate height from the ground. Check out RaycastHit for all the things that can be done with rays.
Yoggy is straight up using physics on his car… The rotation on the wheels “is” the movement.
I think a RayCast solution with another script that rotates the wheels accordingly is the answer. Animated textures on the tire is crazy right now with Unity (until they integrate some QT compression).
Yoggy has a bunch of primitive Rigidbody Colliders (boxes) around his wheels and he’s using that friction to move his car. It works great for his “all terrain” approach. Nicholas said at some point that most driving games use Raycasting to determine where the car is situated on the ground.
So maybe setting up a script that rotates the wheels in relation to the speed of the car would look realistic.
Yeah, I think thats the way to go. You should remember to use physics on cars body dont place the car exactly x above the ground. Just have a minimum distance (being the diameter of the tire) that the car can be off the ground. Rotate the wheel like antenna said, and you off to making a sweet car. Should handle well too. Cant wait to see