android - Physics object passing through wall object in corona sdk -
i hitting ball force , there wall assigned physics property , static, ball dynamic, problem when enough force applied ball passes through wall, type of table wall in sample simple pool game. have used ball.isbullet=true same problem there. please suggest how solve it.. thanks
this common issue when dealing small, fast-moving objects. typically, best solution make "walls" thicker, if possible within game. also, may increase velocity , position iterations (links below)... remember both of these (along .isbullet=true) may result in slight performance penalty, first approach best.
http://docs.coronalabs.com/api/library/physics/setvelocityiterations.html http://docs.coronalabs.com/api/library/physics/setpositioniterations.html
brent sorrentino
Comments
Post a Comment