Hello, I was wondering how to do isSensor while using lua. I have added the physics engine into my code however I have no idea on how to actually do isSensor. I have tried using an event listener to start the “began” function however nothing happens. This is the code we have attempted to use.
local function range(event) if event.phase=="began" then print("test"..event.target.id) return true end if event.phase=="ended" then return false end end Runtime:addEventListener("postCollision",range)
Any idea on what I am doing wrong or how to fix it?