Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to constrain soft body rotation and position
#1
If it's possible how can I constrain soft body
- Y rotation
- Z position

there is this thread about the position constrain, but the solution given there didn't work for me.

Thanks in advance.
Reply
#2
(21-04-2021, 12:39 PM)CumaliSAH1N Wrote: If it's possible how can I constrain soft body
- Y rotation
- Z position

there is this thread about the position constrain, but the solution given there didn't work for me.

Thanks in advance.

Hi there,

You just set the particle's position in the z axis to zero, or to any fixed value you want. For rotation it's similar, you just project the particle's rotation quaternion to the desired axis. You can do this using the particle API: http://obi.virtualmethodstudio.com/tutor...icles.html

Can you provide more details regarding what you have tried so far, and why it didn't work for you?
Reply
#3
(22-04-2021, 07:54 AM)josemendez Wrote: Hi there,

You just set the particle's position in the z axis to zero, or to any fixed value you want. For rotation it's similar, you just project the particle's rotation quaternion to the desired axis. You can do this using the particle API: http://obi.virtualmethodstudio.com/tutor...icles.html

Can you provide more details regarding what you have tried so far, and why it didn't work for you?

Hi thanks for the answer, 

Basically what I want to do is, move the softbody around in orthographic mode.

I tried simulating softbody with a box, and skinning the actual model to it.
it didn’t work for me because, i have objects that softbody can interact with (obstacles etc.)
when softbody hits one of those objects it starts rotating.

I just tried blocking the softbody by surrounding it with colliders, it seems to be working.

I will try your suggestions as well thanks again.
Reply