Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Clamp Softbody position on X / Z axis
#1
Hi, how can I clamp softbody positions on a single axis X or Z. Clamping transforms in Update is not working.
Reply
#2
(06-10-2021, 10:48 AM)uv_unity Wrote:
Hi, how can I clamp softbody positions on a single axis X or Z. Clamping transforms in Update is not working.

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/manua...icles.html
Reply
#3
(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.

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/manua...icles.html

Thank you will check it out.
Reply