Hello!
I am creating a game in which a ball will move by using accelerometer. I want the ball to move upward and sideways but not downward. is there any way to restrict only downward motion.
Thanks
Hello!
I am creating a game in which a ball will move by using accelerometer. I want the ball to move upward and sideways but not downward. is there any way to restrict only downward motion.
Thanks
Hello,
Are you using a sample code base like our “ShapeTumbler” project? This is a good starting point, and it should be easy to modify it so that downward movement is prevented.
https://github.com/coronalabs/samples-coronasdk/tree/master/Physics/ShapeTumbler
Best regards,
Brent
Hello,
Are you using a sample code base like our “ShapeTumbler” project? This is a good starting point, and it should be easy to modify it so that downward movement is prevented.
https://github.com/coronalabs/samples-coronasdk/tree/master/Physics/ShapeTumbler
Best regards,
Brent