Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to rest all state
#6
(05-02-2019, 06:13 AM)_gaoyu_ Wrote: Hi josemendez,

I upload my test file and link: https://pan.baidu.com/s/1e8jU5dDUlEoZSLhKrK7VXg

I want to rest postion and Acceleration , but still failure. 

Every ball will rest pos when y<-5.0 ,but Velocity is error.   My idea is  ball will vertical fall  after rest;

You can check AddRandomVelocity.cs, KeyCode.Space can force balls.



Please

Thankyou

Hi,

Sorry, I'm unable to download the file you sent. The script I posted in my previous post will move the object to a random position, and it will of course fall due to gravity after being moved to a new position.

Make sure you have deactivated the AddRandomVelocity script in the ball pool scene (or at least commented out its original code), as that will set a random velocity for all soft bodies in the scene when you press "space".

Also, make sure "Simulate when invisible" is enabled in the ObiSolver settings. When disabled, the solver will cease to perform simulation once all objects are invisible to all game cameras.
Reply


Messages In This Thread
How to rest all state - by _gaoyu_ - 02-02-2019, 02:33 PM
RE: How to rest all state - by josemendez - 03-02-2019, 02:13 PM
RE: How to rest all state - by _gaoyu_ - 04-02-2019, 09:52 AM
RE: How to rest all state - by josemendez - 04-02-2019, 04:08 PM
RE: How to rest all state - by _gaoyu_ - 05-02-2019, 06:13 AM
RE: How to rest all state - by josemendez - 05-02-2019, 08:57 AM
RE: How to rest all state - by _gaoyu_ - 05-02-2019, 10:18 AM
RE: How to rest all state - by josemendez - 05-02-2019, 10:35 AM
RE: How to rest all state - by _gaoyu_ - 05-02-2019, 10:46 AM