swift - Porous Boundary -


i set boundary game seems working alright until forced, in make character run towards several seconds, , character go straight through. explanations , how can fix it?

edit: here code boundary

    func createscenecontents() {          self.backgroundcolor = .black          self.physicsbody = skphysicsbody(edgeloopfrom: self.frame)                 }      createscenecontents()         ship.physicsbody = skphysicsbody(rectangleof: ship.size)         ship.physicsbody?.affectedbygravity = false         ship.physicsbody?.isdynamic = true         ship.name = "ship"         ship.physicsbody?.categorybitmask = physicscategory.ship         ship.physicsbody?.collisionbitmask = physicscategory.ship 

try setting precise collision detection ship:

ship.physicsbody?.usesprecisecollisiondetection = true

you might consider adding physics category boundary.


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -