Item float in the air
by Tim Wayne · in Torque Game Engine · 05/07/2006 (10:01 pm) · 8 replies
I want an Item that I created in game to float in the air. When I set gravityMod = 0 the item floats toward the heavens very slowly. What setting do I use to get my desired effect? Thank You.
tw
tw
About the author
#2
tw
05/07/2006 (11:24 pm)
I want to have one item and only one item to stay where I create it and wherever I move it later. When I use setTransform, the item drops to the ground. How do I add a variable to the source to ignore gravity? Also, does anyone know why setting gravityMod=0 has the item move slowly upward?tw
#3
Why don't you just raise the item in the world editor
What is the item?
05/10/2006 (7:54 am)
Gravity mod->0 makes the item ignore gravity so it floats upwardsWhy don't you just raise the item in the world editor
What is the item?
#4
05/10/2006 (8:48 am)
Use the item's "static" variable. I think that does what you need.
#5
05/10/2006 (4:44 pm)
The Item is a rock(or cube with texture). I would like to move the rock up in the air, then stay still(without floating up) then slowly move to a key hole(done by a wizard). When I use the schedule () function, the item moves along choppily and either tries to fall or rise because the gravity isnt correct. I can use world editor to have it float in midair until I move it.
#6
05/10/2006 (5:08 pm)
I think the static variable is just used by the item code to make it respawn or not, been a while though. Don't try to move objects with the schedule function, it's not what it's meant for and just makes problems. If you want something to move like that, I'd look up the resource for PathShape. I think you can use that to give the object a dynamic waypoint to move to. I don't know if that works with items, but it sounds like youl'd be better off with that and staticshapes anyways (since they don't have any gravity physics by default).
#7
05/10/2006 (7:31 pm)
Thank you, I will look into that.
#8
05/10/2006 (8:44 pm)
Quote:Just for clarification, this is not correct. The static variable determines whether the item will drop to the ground or stay where it's placed. The one for respawning is 'respawn'.
I think the static variable is just used by the item code to make it respawn or not
Torque Owner Paul /*Wedge*/ DElia