05-02-2019, 08:57 AM
(This post was last modified: 05-02-2019, 08:58 AM by josemendez.)
(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.