05-04-2021, 12:43 PM
(This post was last modified: 05-04-2021, 12:45 PM by josemendez.)
(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