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

Login with username, password and session length

Advanced search

1404589 Posts in 68398 Topics- by 62050 Members - Latest Member: Pixelmancer_Games

January 29, 2023, 02:52:31 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]
Author Topic: Box collision with array of tiles  (Read 4361 times)
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.

Pages: 1 [2]
Jump to:  

Theme orange-lt created by panic