Ardith Mifflin
Mecha Fiend
Join date: 5 Jun 2004
Posts: 1,416
|
11-13-2004 10:13
I'm trying to create a vehicle which hovers at a fixed height above the ground, and I'm unable to get the vehicle to work as I'd like. Ideally, I want the vehicle to return to its hover position as if it were falling in gravity. All of the variations on VEHICLE_HOVER_EFFICIENCY, and VEHICLE_HOVER_TIMESCALE which I have tried proved fruitless. I tried having the linear motor always firing downward, but that also didn't do the trick. Any suggestions on a solution? Am I missing something obvious?
Thanks
|
Apotheus Silverman
I write code.
Join date: 17 Nov 2003
Posts: 416
|
11-18-2004 09:37
From: Ardith Mifflin Ideally, I want the vehicle to return to its hover position as if it were falling in gravity Could you explain that a little further? I don't understand...
|
Wednesday Grimm
Ex Libris
Join date: 9 Jan 2003
Posts: 934
|
11-18-2004 13:05
I think you are looking for the flag VEHICLE_HOVER_UP_ONLY (not sure if that's the exact name, but something like that).
_____________________
Sarcasm meter: 0 |-----------------------*-| 10 Rating: Awww Jeeze!
|
Ardith Mifflin
Mecha Fiend
Join date: 5 Jun 2004
Posts: 1,416
|
11-18-2004 16:34
Nope. To clarify, I was looking for a way to get my vehicle to fall exactly like an object would without any forces save for that of gravity, but to cease falling at an arbitrary height. Much like how a car or motorcycle behaves, except instead of the ground serving as that limit, I wanted to arbitrarily define a new height. Essentially, a means of raising the effective height of the ground using just the hover parameter. I think I ask too much.  Though toying about with the parameters for hover didn't create the effect which I was looking for, I was able to produce a similar effect by other means. It's not perfect, but it seems to work well enough. So forgive this poorly worded thread, and allow it to die a painful death.
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
11-19-2004 02:32
From: Ardith Mifflin So forgive this poorly worded thread, and allow it to die a painful death. May you be so lucky 
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly
Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey
|
Tcoz Bach
Tyrell Victim
Join date: 10 Dec 2002
Posts: 973
|
11-19-2004 18:18
I was similarly frustrated with the flags, so wrote a script that does this. My scenario was airborne droids that would return to a predetermined hover height after chasing a passing AV, or performing whatever command I was inclined to have them perform. The air-to-air turrets in Terrain use this script...in fact I've used it constantly. It does some computations on ground height, height of object, and so forth.
I called it "bobber", since I added a little routine that makes the object "bob", as if really hovering. Was also a great effect for making something look like it was bobbing on the surface of the water.
Keep in mind that for games, gravity is often (usually in fact) computed off of some diminishing (for up) or increasing (for down) decay as opposed to the "real" physics of gravity, largely for performance reasons. Second Life itself uses a variety of "good enough" physics for some of its workings. This approach can perform better, get you the same results for all intents, but be WAY simpler to code.
Send me an IM in game, when I log in (if I can) I'll dig up a copy and send it your way.
_____________________
** ...you want to do WHAT with that cube? **
|