Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 
Advanced search

1390742 Posts in 66779 Topics- by 59513 Members - Latest Member: besteffortgames

April 12, 2021, 05:11:38 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 1039 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