![]() |
Clamp Softbody position on X / Z axis - Printable Version +- Obi Official Forum (https://obi.virtualmethodstudio.com/forum) +-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html) +--- Forum: Obi Softbody (https://obi.virtualmethodstudio.com/forum/forum-12.html) +--- Thread: Clamp Softbody position on X / Z axis (/thread-3121.html) |
Clamp Softbody position on X / Z axis - uv_unity - 06-10-2021 Hi, how can I clamp softbody positions on a single axis X or Z. Clamping transforms in Update is not working.
RE: Clamp Softbody position on X / Z axis - josemendez - 06-10-2021 (06-10-2021, 10:48 AM)uv_unity Wrote: Obi is a particle-based physics engine. Each softbody is composed of many particles, each one with its own position/rotation/size. Clamping the transform isn't going to have any affect on them. Take a look at the particle API: you can restrict particle positions/velocities to lie on a single axis, plane, or any other custom constraint you need: http://obi.virtualmethodstudio.com/manual/6.2/scriptingparticles.html RE: Clamp Softbody position on X / Z axis - uv_unity - 07-10-2021 (06-10-2021, 11:14 AM)josemendez Wrote: Obi is a particle-based physics engine. Each softbody is composed of many particles, each one with its own position/rotation/size. Clamping the transform isn't going to have any affect on them. Thank you will check it out. |