Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Softbody for Vehicles?
#5
(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.
Reply


Messages In This Thread
Softbody for Vehicles? - by StudioTatsu - 06-02-2019, 04:46 PM
RE: Softbody for Vehicles? - by josemendez - 06-02-2019, 06:48 PM
RE: Softbody for Vehicles? - by StudioTatsu - 06-02-2019, 08:56 PM
RE: Softbody for Vehicles? - by josemendez - 07-02-2019, 10:39 AM
RE: Softbody for Vehicles? - by josemendez - 07-02-2019, 05:37 PM
RE: Softbody for Vehicles? - by StudioTatsu - 08-02-2019, 01:59 AM
RE: Softbody for Vehicles? - by josemendez - 08-02-2019, 08:23 AM
RE: Softbody for Vehicles? - by StudioTatsu - 07-02-2019, 06:52 PM
RE: Softbody for Vehicles? - by StudioTatsu - 08-02-2019, 01:21 PM