Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Soft Body not colliding 2D mesh
#6
(05-04-2021, 12:07 PM)all2i Wrote: when changing Mode from 3d to 2d it freezes the Z axis. what if I want to freeze other axis is it possible?

This doesn't freeze a rotation axis for a softbody, this performs the entire simulation in 2D. Affects both positions and rotations of all particles from all actors in the solver, it is a solver-wide change.

(05-04-2021, 12:07 PM)all2i Wrote: unity rigid body can do it easily but how in ur rigid body?

You can't freeze the rotation axis of a softbody, simply because there isn't a *single* rotation axis for the entire softbody (unlike there is for a rigidbody, for obvious reasons). Individual particles of the softbody can freely rotate around their own axis each.

So you can only restrict rotation on a per-particle basis. Using the particle API you can get the rotation quaternions of each particle, project them to a certain axis, then write them back. See: http://obi.virtualmethodstudio.com/tutor...icles.html
Reply


Messages In This Thread
Soft Body not colliding 2D mesh - by beatrichartz - 28-12-2020, 09:47 AM
RE: Soft Body not colliding 2D mesh - by all2i - 05-04-2021, 12:07 PM
RE: Soft Body not colliding 2D mesh - by josemendez - 05-04-2021, 12:43 PM