Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411482 Posts in 69370 Topics- by 58426 Members - Latest Member: shelton786

April 24, 2024, 12:29:25 AM

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 4900 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