Revamped collision system

This commit is contained in:
Jan Racek
2026-03-27 16:39:42 +01:00
parent d29ef569b3
commit 1c48b8b425
16 changed files with 318 additions and 136 deletions

View File

@@ -22,7 +22,7 @@ Add (or merge) the following into your workspace `.vscode/settings.json`:
// Event callbacks the engine calls — not "undefined" globals
"onCreate", "onUpdate", "onDestroy",
"onEnable", "onDisable",
"onCollision", "onInteract",
"onCollideWithPlayer", "onInteract",
"onTriggerEnter", "onTriggerStay", "onTriggerExit",
"onButtonPress", "onButtonRelease"
]

View File

@@ -351,7 +351,7 @@ function onDisable(self) end
--- Called when this object's collider overlaps another.
--- @param self EntityHandle
--- @param other EntityHandle
function onCollision(self, other) end
function onCollideWithPlayer(self) end
--- Called when the player interacts with this object (PSXInteractable).
--- @param self EntityHandle