nunuhara / xsystem4

Cross-platform implementation of AliceSoft's System 4 engine
GNU General Public License v2.0
45 stars 4 forks source link

TapirEngine: Proper collision detection #194

Closed kichikuou closed 1 month ago

kichikuou commented 1 month ago

Collision detection is based on a mesh named "collision" in the map's 3D model. The "collision" mesh specifies the area in which the character can move in the xz plane, and the y coordinate represents the height of the map at that point.

Now cglm 0.9.2 is required, for 2D AABB operations.

kichikuou commented 1 month ago

FYI: You can view the collision mesh at https://kichikuou.github.io/model-viewer/ by selecting a model under Data\PolyData\Map\ and checking "Show Collision".

nunuhara commented 1 month ago

Thanks!