Physics Object Passing Through Wall Object In Corona Sdk
I am hitting a ball with a force and there is a wall which is assigned a physics property and is static, but the ball is dynamic, the problem is when enough force is applied to the
Solution 1:
This is a fairly common issue when dealing with small, fast-moving objects. Typically, the best solution is to make the "walls" thicker, if that is possible within your game. Also, you may increase the velocity and position iterations (links below)... just remember that both of these (along with .isBullet=true) may result in a slight performance penalty, so the first approach is the best.
http://docs.coronalabs.com/api/library/physics/setVelocityIterations.htmlhttp://docs.coronalabs.com/api/library/physics/setPositionIterations.html
Brent Sorrentino
Post a Comment for "Physics Object Passing Through Wall Object In Corona Sdk"