07-02-2019, 05:37 PM
(06-02-2019, 08:56 PM)StudioTatsu Wrote: Awesome that fixed it.
I think there a bug. At first, I thought it was model but it did the same thing on the DeformableBarrels scene.
It prematurely deforms if rotated before the scene starts.
To Repro:
1. Open the DeformableBarrels scene.
2. change any barrel Y position to 0.1
3. change that same barrel X Rotation to 90
4. click pause, then play button.
Notice how it deforms as the scene starts
It's not as noticeable here, definitely more noticeable with a different model (see attached image)
Not sure if it's a wrong setting or a bug.
I think I found a bug that caused this, and fixed it.
Replace lines 429-433 of ObiActor.cs with this:
Code:
if ((data & ParticleData.REST_POSITIONS) != 0 && restPositions != null && i < restPositions.Length){
Vector4 rest = l2sTransform.MultiplyPoint3x4(restPositions[i]);
rest.w = restPositions[i].w;
solver.restPositions[k] = rest;
}
if ((data & ParticleData.REST_ORIENTATIONS) != 0 && restOrientations != null && i < restOrientations.Length)
solver.restOrientations[k] = l2sRotation * restOrientations[i];
Thanks for reporting this! let me know how it goes.