Vehicle setup using content creation tools. And creating vehicle with doors.

Vehicle setup using content creation tools. And creating vehicle with doors.

kxxx_og's picture

Hi,

I went through the documentation for the Havok content creation tools (CCT).

It's fantastic.

But one thing I noticed is that there was no mention of how to setup vehicle parameters.

Did I miss something?
If it is not already present, then how can I proceed?
Cause if I want to setup a vehicle manually, then it'll be very cumbersome.

On the same lines, how do I create a vehicle with doors?
If I can export it using theCCT, then it would probably be simple.

Setting it up manually is a real pain.

Any one can help me here?

Thanks.

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
sean.thurston's picture

Hi kxxx_og,

You can't really setup vehicle parameters in the Content Tools. You are going to have to set these up in the runtime. Vehicles require quite a bit of tuning. You can check out the Vehicle demos and copy and paste a lot of the code from there. You are going to want to create the rigid body chassis in the modeller.

Doors can be done a couple of ways. I would not recommend using a constraint for the door when it is closed. It is never going to be perfectly rigid when the car is moving, crashing, doing game stuff at high speeds. I would suggest using a hkpListShape for the car chassis. You would have a shape for the left door, right door, and rest of the car as part of the list shape. When you open the door you can disable the door child shape (hkpListShape::disableChild()) and add the constraint and door rigid body into the world. When the door closes, enable the child shape and get rid of the constraint and rigid body.

Does that make sense? Let me know if you have any other questions on this.

Thanks,
Sean

Developer Support Engineer Havok www.havok.com

Login to leave a comment.