Spawn engine bug.
4 posts • Page 1 of 1
Spawn engine bug.
Does anyone have any ideas?
Could script cause this?
I've never faced this problem before....
And yes i did try to re'install Algodoo, also reset setting to factory. Still the same.
http://www.algodoo.com/algobox/details.php?id=98682
Could script cause this?
I've never faced this problem before....
And yes i did try to re'install Algodoo, also reset setting to factory. Still the same.
http://www.algodoo.com/algobox/details.php?id=98682
- Attachments
-
- i4 Van 0.9 Engine Bug.phz
- Please help!
- (193.15 KiB) Downloaded 46 times
- vaidas369
- Posts: 24
- Joined: Thu Jan 30, 2014 8:51 pm
Re: Spawn engine bug.
I just figured out why! You have a script that varies inertiamultiplier on your flywheel based on engine speed, but if your engine stops, it goes to 0 and it disappears. I encountered this problem as well, and devised this code to fix it. Just put it in the InertiaMultiplier of your wheel:
Where scene.my.flyw is scene.my.rpm (or whatever var you use to read engine speed) * 1.1 in this case. It basically says if your engine speed drops below 1 rad/s than the InertiaMultiplier will automatically go to 1, preventing it from disappearing (hopefully).
By the way; The truck is really cool! I'd like to see it fixed!
- Code: Select all
{
Scene.my.flyw < 1 ? 1 : scene.my.flyw
}
Where scene.my.flyw is scene.my.rpm (or whatever var you use to read engine speed) * 1.1 in this case. It basically says if your engine speed drops below 1 rad/s than the InertiaMultiplier will automatically go to 1, preventing it from disappearing (hopefully).
By the way; The truck is really cool! I'd like to see it fixed!
(/)(°,,,°)(/)
-
pnvv - Posts: 670
- Joined: Tue Aug 26, 2014 11:46 pm
- Location: Disunited States of America
Re: Spawn engine bug.
Thanks! That fixed the problem. Small detail and big trouble
Thanks
Thanks
- vaidas369
- Posts: 24
- Joined: Thu Jan 30, 2014 8:51 pm
Re: Spawn engine bug.
Ok I see that you already fixed the problem, but how come you have that script to fluctuate the inertia of the flywheel? I'm trying everything I can to try to learn these engines, so I'm just asking so I know in the future.
- Epic_SkyPilot
- Posts: 12
- Joined: Sun Sep 14, 2014 11:28 pm
4 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 5 guests