c# - How to make moving car on the limiting mask? -



c# - How to make moving car on the limiting mask? -

i want create race game. game 2d view top. need mask must limit road adequately work of moving auto :) have tried per pixel collision it's not thought because scan collision happen process load cpu. guess need method can calculate 1 time , next time utilize calculated without tension.

what suggest me? have c# xna game studio. excuse me english:)

i seek explain how go solve problem. if road looks on image, can utilize pixel collsion part of texture (blue circle) no need check whole image. , check collsions on edges (protruding parts) of auto tiny greenish circles.

other way draw road using vectors (to create polygon). can check if auto intersects iiner , outer polygon. between 2 polygons road.

c# xna desktop collision

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -