Hello.
I need to lock movement in Y axis for all objects in space, so they can move only in XZ plane. How can I do it?
Excuse me for my English.
v1. Lock movement in Y axis.
Re: v1. Lock movement in Y axis.
Something like this would work:
viewtopic.php?t=2539
viewtopic.php?t=2539
-
- Posts: 7
- Joined: Fri Feb 15, 2019 2:03 pm
Re: v1. Lock movement in Y axis.
Thank you.
How can I do it in V2? Which method? I can't find.The easiest approach is setting two of the rows of the local inverse inertia tensor in every dynamic body to all zeroes.
Re: v1. Lock movement in Y axis.
The BodyDescription contains a LocalInertia field. You can set that prior to adding it to the Bodies set.
If you want to access an existing body's local inertia, you could use something like:
If you want to access an existing body's local inertia, you could use something like:
Code: Select all
ref var localInertia = ref new BodyReference(bodyHandle, Simulation.Bodies).LocalInertia;
-
- Posts: 7
- Joined: Fri Feb 15, 2019 2:03 pm
Re: v1. Lock movement in Y axis.
Thank you again.