steven11sjf / dreaditor

A PyQt5-based Metroid Dread data visualizer
GNU General Public License v3.0
1 stars 1 forks source link

Add collision created in BMSAD function #6

Closed steven11sjf closed 3 days ago

steven11sjf commented 6 months ago

in some actors bmsad's, there's a function on the CCollisionComponent that seems to be CreateCollider(name: str, prop1: str, prop2: str, prop3: str, type: str, data: float..., unk_maybe_flag: optional[bool])

examples from save station weight platform: CreateCollider("smartobject", "smartobject", "platform_push", "PLAYER_COLLISION|IGNORE_GHOST_AURA", "AABOX2D", 0.0, 0.0, 0.0, 170.0, 30.6718) CreateCollider("frameleft", "frame", "platform_push", "PLAYER_COLLISION|IGNORE_GHOST_AURA", "AABOX2D", -101.5, -3.0369, -1.3274e-7, 33.0, 23.5821, True) CreateCollider("frameright", "frame", "platform_push", "PLAYER_COLLISION|IGNORE_GHOST_AURA", "AABOX2D", 101.5, -3.0369, -1.3274e-7, 33.0, 23.5821, True)

It seems to line up with the bmscc values, should research more to see if there's a polycollection2d or circle or anything like that.