Hey,
I've got 2 worlds with completely identical objects and I want both worlds to behave the same but one of them to simulate everything faster than the other one. I tried simply passing the world:update function 100*dt but that didn't work for some reason...
Thanks in advance!
love.physics - Increase simulation speed for one world
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: love.physics - Increase simulation speed for one world
if you are doing it right exactly that will work - the error is in your code not in the concept, so without your code we cant help you any further. To increase physics accuracy in the second world you can consider calling world:update twice every frame maybe even.Ovidios wrote:Hey,
I've got 2 worlds with completely identical objects and I want both worlds to behave the same but one of them to simulate everything faster than the other one. I tried simply passing the world:update function 100*dt but that didn't work for some reason...
Thanks in advance!
- slime
- Solid Snayke
- Posts: 3132
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: love.physics - Increase simulation speed for one world
World:update will behave slightly differently if different delta times are used. So you'll have to call the second world's update multiple times per frame using love.update's delta time directly, rather than calling it once with a different delta time.
Who is online
Users browsing this forum: No registered users and 81 guests