PDA

View Full Version : Handling Collisions


ryguy
09-22-2002, 05:11 PM
I have a car model and a hilly terrian. I want to be able to move the car on the terrian and have it collide with the terrian perfectly... meaning the wheels don't go through the terrian.

I just select the body of the car and move it. I used set driven keys to move the wheels along with the body of the car. I've tried tests with active and passive solvers but it didn't work out too well. (my car fell apart once it hit the terrain :) )

Any advice on how I could achieve this... I know I could mess around with the graphic editor but if there is any other tricks out there, I'd like to know.

Thanks,

~Ryan

beaker
09-22-2002, 10:53 PM
It would envolve expressions and mel scripts. You could do it by making a dummy objects at the ground plane of the car's wheels and then use an expression/script to find the normal of the surface it is intersecting and use that to rotate the car/push up on the wheels. The only trouble is that your going to have to build a fairly dynamic car to achieve this. The surface is going to be uneven and you car is still going to go through the ground, so you would have to build dynamic shocks on the car in order to compensate for the uneven ground. The wheels will need to have that give and bounce to make up for it.

If your not into mel scripting and expression writing then I suggest you hand animate it. Depending on your camera angles, you may not even have to worry that much about wheel penetration of the ground.

playmesumch00ns
09-23-2002, 10:15 AM
If you used the telescopic IK setup mentioned in this forum, one for each wheel as suspension, you could perhaps parent all 4 to the locator beaker mentions, then have this setup drive the car itself. You'd only have to animate the secondary motion of the car then...

CGTalk Moderation
01-13-2006, 05:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.