Saturday, 15 March 2014

c# - Issue implementing proper collision in XNA Game Studio 4.0 -



c# - Issue implementing proper collision in XNA Game Studio 4.0 -

i building game in xna 4.0, player moves 2 dimensional (vertical perspective) map consisting of blocks. issue creating proper collision between payer , blocks (basic game physics.) player moves more 1px per frame, .intersects() isn't enough, need physical contact collision can function in gravity environment. current version have piece of garbage , works occasionally.

basically, collision scheme needs stop gravity when player lands on block, , provide decent physics when player hits blocks (movement in direction ceases). thought behind current solution move next position around until finds clear spot, doesn't work well. have thought why, have no thought how properly.

i know there must improve way this. best method of making kind of collision work properly?

thanks

this job perfectly, need sort through few syntax errors. http://go.colorize.net/xna/2d_collision_response_xna/

c# collision-detection xna-4.0

No comments:

Post a Comment