pen
id: 750254
category: Help with Scripts
posts: 4
-mage
loading
anyone know fast detection methods of collision? (no AABB or SAT collision, I know those already) I am looking for optimized fast methods of detecting collisions between objects
BigNate469
loading
You can find the slope of a line and use trig to align it with an axis and rotate everything else (also using trig) accordingly and then using standard AABB-style checks, and rotate it back before you render it.
You can also use some algebra to check for the points where a line will intersect.
You can also use some algebra to check for the points where a line will intersect.
-mage
loading
i have tried doing that and using rotation matrixes to create the new points but using the trigonometric operators is quite computationally expensive and slow also this is pretty much what SAT does, but more efficiently but sadly it's still slow You can find the slope of a line and use trig to align it with an axis and rotate everything else (also using trig) accordingly and then using standard AABB-style checks, and rotate it back before you render it.
You can also use some algebra to check for the points where a line will intersect.
-mage
loading
also this is for pen projects so i cant use touching bloks
<touching [ v]>
<touching color [#ed7866] ?>
<color [#6eee92] is touching [#370d47] ?>