Jump to content

Physics are not working if camera not looking


photo

Recommended Posts

Posted

Hi, I have developed a game over game framework. I am using your Car, Level, Driver examples.

 

My car is getting commands from UDP ( wheel, gas, brake etc.)

 

Anyway, If my camera is not looking at my car physics are not working. It gets ignition, gas but it is not moving unless I turn camera to car.

 

Is there anything to fix it? It makes no sense. I should not always look at my car.

 

Before you ask, my code is too huge and complicated to send. But I don't think there is something about my code. There must be a setting maybe rendering setting.

 

Thanks.

Posted

Hi,

 

Physics simulation stops when:

1. player is not set,

2. distance to the player is greater than engine.world.getDistance() or engine.physics.getDistance().

 

So I think tuning both world and physics simulation distances should help.

Posted

Is there any limit for distance. If it is too big, fps down etc. ?

Posted

Both physics and world distance is 1 000 000 000 units.

 

What is units? Meters? Centimeters?

 

My distance where physics is not working is at most 300 meters.

Posted

Also I think my problem is not distance. I multiply distance by 10000 and nothing changed.

 

If I do not move camera but only look the car that should run physics, physics starts.

 

If I look to ground physics not working but If I look at the car in same distance physics starts to work.

  • Like 1
Posted

Hi Yiğit,

 

Unfortunately, we ran out of ideas :( Could you please provide a small (or not) sample with that issue so we can tell you what is causing it?

Sorry for the inconvenience caused.

How to submit a good bug report
---
FTP server for test scenes and user uploads:

  • 1 month later...
Posted

I forgot to say it is game framework.

 

I can't provide sample, sorry.

 

But if you need any particular part of code I can provide. 

×
×
  • Create New...