Game Development Community

ballHitFloorBehavior

by rennie moffat · in Torque Game Engine · 12/29/2009 (4:32 pm) · 3 replies

hi, have a ballHitFloor behavior. it is to send a message tho the ball, which has been falling to stop, the constant force applied to it via the editor. I am wondering, would a simple onCollision to the ball, so that when it hits, the floor, that that contact will stop the ball from moving?


Currently it is not working but collisions are the way to go, my problem is that my ball is still, tho it does stop initially, but eventually powers it way thru the floor due to the still existing constant force applied to it.






:?

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.


#1
12/29/2009 (4:36 pm)
or I am wondering,
should I apply the constant force, helping simulate gravity in script, to negate the editor, or is my problem, NOT A PROBLEM for the editor.
#2
12/29/2009 (5:42 pm)
I think you'd be better off in the TGB forums, but it sounds like you're on the right track. Just need to find a way to negate a constant force.
#3
12/29/2009 (7:45 pm)
yah, stopConstantForce()


but I have to do some tinkering as I didn't get it today.

I think in time it will come.


thanks.



what I need to know now is...
i know how a code can be overwritten via the editor ( say i want to change a dynamic field). But is it just as easy going in reverse.