Like the content example for control rig I’m doing a SphereTraceByObjectType on WorldStatic object to be able to have feet ik.
We are now trying to add rivers in our world but the ik is trying to reach the surface of the water.
I saw that the collision preset on water is WaterBodyCollision and is of type WorldStatic so it explain the problem I have. The part I don’t understand is even changing the Collision preset to custom and making sure it is NOT WorldStatic, my SphereTraceByObjectType still return a hit on water.
It may be a bug, not sure what is the correct way to do it.
Hey there @FLG667! Welcome to the community! So what I’d use is more of a workaround while I discern exactly why the trace still detects the water systems even when that’s no longer it’s collision object type as it seems the component it collides with is actually a hidden collision and not the WaterBodyComponent itself.
You could check the hit actor if it’s either a river or ocean class, and then process it further if not.
In my case I don’t think I can do that workaround, at least I don’t know how. In a control rig the Sphere trace only return if something was hit as a boolean, location and normal. Nothing on what I actually hit.