Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 631 Bytes

File metadata and controls

15 lines (9 loc) · 631 Bytes

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