Question on restricting a thrown weapon to just 2 axes

Hey all!

I’m working on a 2.5D game and thrown items are basically falling off the ledge of the map towards the camera.

Is there an easy way to limit physics to just 2 axes, or to the navmesh that’s there?

Or is the only real way to erect planes bounded the area I want the thrown items kept to?

Thanks!

Hello there @KungFuBrad!

You should be able to achieve that setup using the Physics / Constraints component, in Mesh details. Here you can lock the location, and set a Mode to limit the movement. All details can be found in the following guides:

Thank you, this was close to what I needed. What threw me off in my reading about the PhysicsConstraint component was that it needs 2 meshes in a parent-child relationship.

The constraining mode you were referring to is what I did need though, but it was on the Collision component, in a category called “Constraints”, the “Mode” I needed was ‘YZPlane’.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.