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

Login with username, password and session length

Advanced search

1393695 Posts in 67098 Topics- by 60052 Members - Latest Member: lefter33

August 01, 2021, 03:19:59 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]
Author Topic: Box collision with array of tiles  (Read 3067 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