How to work with collisions?

how to make a collider trigger in code without raycast. For example, if an object enters some object, so that it is written in the console that this object has entered this zone.

Original Post on Discord

by user 1101049107931480066

Hi, you can use the component events: Needle Engine Scripting | Needle Engine Documentation

You can also checkout the samples for physics: Needle Engine Samples < e.g. the color changes is done via those event methods

or needle-engine-samples/package/Runtime/_Shared/SampleScripts~/PlayAnimationOnTrigger.ts at main ยท needle-tools/needle-engine-samples ยท GitHub

Now also in the docs :slightly_smiling_face: Script Examples | Needle Engine Documentation