1. Help us improve the editor usability and artist workflows. Join our discussion to provide your feedback.
    Dismiss Notice
  2. Unity 5.6 is now released.
    Dismiss Notice
  3. Check out all the fixes for 5.5 in patch releases 1 & 2.
    Dismiss Notice
  4. Get further faster with the Unity Plus Accelerator Pack, free for new Unity Plus subscribers for a limited time. Click here for more details.
    Dismiss Notice
  5. Learn how you'll soon be able to publish your games to China in four simple steps with Xiaomi. Sign up now for early access.
    Dismiss Notice

Unity 5.6 standard cloth component doesn't works???

Discussion in 'Physics' started by sunyifeng, Apr 7, 2017.

  1. sunyifeng

    sunyifeng

    Joined:
    Nov 4, 2014
    Posts:
    19
    Does the new Unity 5.6 standard cloth component works ?
    I try with 3d plane mesh and either editor crash or hangs.
    Maybe it's my configuration's wrong ?How to get it working??
     
  2. sunyifeng

    sunyifeng

    Joined:
    Nov 4, 2014
    Posts:
    19
    I saw the editor log, and the errors list below:
    [Physics.PhysX] Call to PxCloth::setExternalAcceleration() not allowed while simulation is running.

    (Filename: C:\buildslave\physx\build\Source\PhysX\src\buffering\ScbCloth.h Line: 595)

    [Physics.PhysX] Call to PxCloth::setExternalAcceleration() not allowed while simulation is running.

    (Filename: C:\buildslave\physx\build\Source\PhysX\src\buffering\ScbCloth.h Line: 595)

    [Physics.PhysX] Call to PxCloth::setCollisionSpheres() not allowed while simulation is running.

    (Filename: C:\buildslave\physx\build\Source\PhysX\src\buffering\ScbCloth.h Line: 359)

    [Physics.PhysX] Call to PxCloth::setTargetPose() not allowed while simulation is running.

    (Filename: C:\buildslave\physx\build\Source\PhysX\src\buffering\ScbCloth.h Line: 574)

    [Physics.PhysX] Call to PxCloth::setMotionConstraints() not allowed while simulation is running.

    (Filename: C:\buildslave\physx\build\Source\PhysX\src\buffering\ScbCloth.h Line: 246)

    Any help will be appreciated, thanks!!
     
  3. SaraCecilia

    SaraCecilia

    Product Community Manager Unity Technologies

    Joined:
    Jul 9, 2014
    Posts:
    633
    Hi, can you give me a callstack for the crash?
     
  4. sunyifeng

    sunyifeng

    Joined:
    Nov 4, 2014
    Posts:
    19
    Hi SaraCecilia,

    I only has the error logs, because every time i click play, the editor just stuck. If i disable the cloth, everything is fine.
     
  5. sunyifeng

    sunyifeng

    Joined:
    Nov 4, 2014
    Posts:
    19
    I want to know in what condition can cause the error:
    [Physics.PhysX] Call to PxCloth::setExternalAcceleration() not allowed while simulation is running.

    I have not changed the ExternalAcceleration in my script.
     
  6. sunyifeng

    sunyifeng

    Joined:
    Nov 4, 2014
    Posts:
    19
    I made i small test, just create a 3d plane and add cloth component to it. If set the V Sync Count in the quality setting to Don't Sync. The editor will stuck when click the play button. If use Every V Blank. Everything is fine. The problem occurs just in unity 5.6.
     
  7. sunyifeng

    sunyifeng

    Joined:
    Nov 4, 2014
    Posts:
    19
    I try the Unity 5.6.0p1 and the problem still happening, when i add cloth component to objects, the editor will crash or stuck. The crash files list below.
     

    Attached Files:

  8. SaraCecilia

    SaraCecilia

    Product Community Manager Unity Technologies

    Joined:
    Jul 9, 2014
    Posts:
    633
    Thank you! Would you be able to send me the simple repro project as well (where you create the 3d plane and add the cloth component to it)?
     
  9. alan-lawrance

    alan-lawrance

    Joined:
    Feb 1, 2013
    Posts:
    117
    We have this issue as well (5.6.0p1) -- any known work-arounds besides disabling cloth?
     
  10. AFrisby

    AFrisby

    Joined:
    Apr 14, 2010
    Posts:
    151
    Having the same issue.
     
  11. sunyifeng

    sunyifeng

    Joined:
    Nov 4, 2014
    Posts:
    19
    Hi SaraCecilia,
    I have submited a bug report to you and attach my test clothing project. The address is:
    https://fogbugz.unity3d.com/default.asp?903692_mn6ciuq72aklosfj