dim3 Forum

Full Version: Racing Questions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've had to stop the other game for a while, since I can't make decent human models yet. Instead, I'll be trying to make some Wipeout rip-off (since I seem to be good at vehicles of the like), and I need some scripting questions answered.

1: Is there a way to make a vehicle hover at a set position over the ground? Turning the weight to zero doesn't work the way I imagined it would. T-T

2: Do I need to make animations for turning (so the vehicle can tilt a little when it turns)?

3: Any AI tips would be appreciated!

4: Finally, how can I make multiple choosers (one for the vehicle, one for the track, etc.)?

Thanks for any answers. I'll be sure to show what I have when I make another model or two!
Redd Wrote:1: Is there a way to make a vehicle hover at a set position over the ground? Turning the weight to zero doesn't work the way I imagined it would. T-T

You'll want to use:

Code:
obj.setting.fly=true;

This makes an object not effected by gravity. If you are actually looking for a "hover" effect but the ground still effects it, you can always offset the model itself off the ground. This might be more what you are looking for. It'll still go up/down with the ground, but look to be floating above it.

Redd Wrote:2: Do I need to make animations for turning (so the vehicle can tilt a little when it turns)?

You can code the tilting by changing an axis on the model, so you don't really need to use an animation here.

Redd Wrote:3: Any AI tips would be appreciated!

I say fill the track with connected nodes, making sure to have a bunch of braching paths so not all cars will take the same path, then drive between the nodes. That's the easy way, but the most static and less dynamic way.

Redd Wrote:4: Finally, how can I make multiple choosers (one for the vehicle, one for the track, etc.)?

You can have as many choosers as you want in the XML (differentiate them by name.) When you call up a chooser in the script, you just pick the correct name.

[>] Brian
I see. That solves what I'm looking for at the moment.

Thanks! I'll see how they work out.
Reference URL's