Revamped collision system
This commit is contained in:
@@ -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"
|
||||
]
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user