gravatic ball needs to sit on a non gravatic table
by rennie moffat · in Torque Game Builder · 01/26/2010 (4:04 pm) · 4 replies
I need to have a table which will hold a ball, this ball has a constantForce always applied to it, it is sensitive to gravity. The table, not affected by gravity simply needs to hold the object until it is collected by my player. The problem is, is that the ball, while sitting on the table, does not sit on the table, it slowly thinks through it.
I have been having this problem for a while, I set the table to immovable, with no physics, to only send collisions and it still, the ball sinks thru. this is not good. Please help.
I have been having this problem for a while, I set the table to immovable, with no physics, to only send collisions and it still, the ball sinks thru. this is not good. Please help.
About the author
My thanks to Garage Games and the Garage Games Community combined with owned determination I got one game up, Temple Racer and I am looking to build more interesting, fun games for the mass market of the iOS app store.
#2
or if it leaves its position?
I think that could work. if there are even easier ways I am all ears. Thanks.
01/26/2010 (4:30 pm)
ok so perhaps if velocity != o, then gravity true?or if it leaves its position?
I think that could work. if there are even easier ways I am all ears. Thanks.
#3
01/26/2010 (4:43 pm)
You could also have in the onCollision callback a check to see if the object the ball collided with is the table. If yes, then you turn off the constant force.
#4
now to just get this bloody mount to work.
I have another question tho unrelated but related.
what would you say is the easiest way to get an object to see another
see thread
http://www.torquepowered.com/community/forums/viewthread/109855
01/26/2010 (4:46 pm)
oh right yes, that would see, easier.now to just get this bloody mount to work.
I have another question tho unrelated but related.
what would you say is the easiest way to get an object to see another
see thread
http://www.torquepowered.com/community/forums/viewthread/109855
Torque Owner Mike Lilligreen
T2DTutorials