View Full Version : Simple up and down movement
21st Jul 2007, 8:57 PM
Does anyone know please, is there a simple way in a BHAV to tell an object to alter its height off the ground?
22nd Jul 2007, 8:17 AM
Do you mean continuously (sliding up and down, as in an animation) or statically (It was on the ground, now it's in the air)?
If you mean continuously then I'm not aware of any such animation, but it'd be pretty darn simple to create one using the Milkshape plugins. If you mean statically then I can think of a couple of options, the simplest of which is a straight mesh swap (have a ground mesh and an in-the-air mesh and switch My Graphic).
22nd Jul 2007, 9:27 AM
I was intending to give the object a menu by which you can choose the height off the ground, which will then remain static until you choose a new height.
I thought about the mesh swapping, but obviously that is a resource overload compared with simply moving the one... I was actually looking at giving this 16 potential positions!
22nd Jul 2007, 10:02 AM
Hmm, yep, that would be a very inconvenient overhead!
I know that the roaches are able to move relative to their current position by snapping themselves into their own slots (I had a bit of a "wtf" moment when I first read that code, but I was able to replicate it in other objects and it works). I'm not sure if that would work for vertical transforms though, since they were using routing slots which generally only move in (x,y), instead of container slots (presumably an object can't contain itself). Worth investigation maybe though?
22nd Jul 2007, 10:06 AM
I can see there is a call:
[prim 0x0002] Expression (Stack Object's 0x006E (Anim Offset Z)
And wondered if that was anything relevant?
vBulletin v3.0.14, Copyright ©2000-2013, Jelsoft Enterprises Ltd.