blandrice / Krnk_RotCubColDetect

Rotated cubes collision detection in KrunkScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Krnk_RotCubColDetect

KrunkScript Rotated Cube Collision Detection

https://streamable.com/twg1p1

The example provided will do really stupid version of player "raycasting" but the implementation is in 3d Box-Box rotated collision detection. (I didn't even know what raycasting was when I made this, ok >_<)

References used

https://jkh.me/files/tutorials/Separating%20Axis%20Theorem%20for%20Oriented%20Bounding%20Boxes.pdf

Really good pdf on separate-axis theorem

https://www.mecademic.com/en/how-is-orientation-in-space-represented-with-euler-angles

Conversion of Krunker's Euler order rotation into a unit coordinate frame

About

Rotated cubes collision detection in KrunkScript