yigitakkok Posted March 29, 2016 Share Posted March 29, 2016 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. Link to comment
ded Posted April 1, 2016 Share Posted April 1, 2016 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. Link to comment
yigitakkok Posted April 3, 2016 Author Share Posted April 3, 2016 Is there any limit for distance. If it is too big, fps down etc. ? Link to comment
silent Posted April 4, 2016 Share Posted April 4, 2016 It depends on amount of physics calculations per frame. You can try to set different distance to see if anything changes in terms of performance. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
yigitakkok Posted April 7, 2016 Author Share Posted April 7, 2016 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. Link to comment
yigitakkok Posted April 7, 2016 Author Share Posted April 7, 2016 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. 1 Link to comment
silent Posted April 8, 2016 Share Posted April 8, 2016 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: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
yigitakkok Posted May 11, 2016 Author Share Posted May 11, 2016 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. Link to comment
Recommended Posts