Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411595 Posts in 69386 Topics- by 58444 Members - Latest Member: FightingFoxGame

May 07, 2024, 01:35:27 PM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsDeveloperTechnical (Moderator: ThemsAllTook)Box collision with array of tiles
Pages: 1 [2]
Print
Author Topic: Box collision with array of tiles  (Read 4920 times)
zarovv
Level 0
**


View Profile
« Reply #20 on: March 20, 2021, 01:54:16 PM »

well at the end using prev position approach didnt work either and had issues.

What did work is saving the max push distance for each direction(left,right,down,up,back,front) and also have multiple side push array (left down, left up, right down, right up).

For each pair collision we update the max push distance for each direction and also the multiple side push array. we basically check for (left up) for example what is the smallest push: left or up, and update it in the (left up) side push array.

This works good enough and now i have a final product finally of a collision engine for my game.



Logged
Pages: 1 [2]
Print
Jump to:  

Theme orange-lt created by panic