Forum

Collisions in VL.Stride

Hi everyone!
I’m trying to figure out how to access the collisions in the stride engine.
For example, say I have two spheres with dynamic colliders and I want to play a sound when they collide.

I know that in stride game studio you can access them with c# scripts

var trigger = Entity.Get();
foreach (var collision in trigger.Collisions)
{
//do something with the collision
}

How would I do this in vl?

If nodes are exposed you should do that the same, eg getEntity => getCollision

Here you can check this vid, the idea behind is pretty much the same:

Awesome! thank you for answering! Your video was very helpful