Dynamic Physics - Questions (SOLVED)

Hi all,

I’m new to Defold and the forum!

I’m having a problem with dynamic physics applied to game objects - they are falling very slowly. I think this might have something to do with scaling of the scene, but I’m not sure where to start fixing it.

Do any of the tutorials cover the scaling of the scene / are there any best practices when setting the scene up?

Also, how can I apply additional forces to objects to make them fire from the ground, slow down in the air etc.?

Finally, is there a way to edit the dynamic physics settings?

Sorry for the relentless questions.

Thanks!

For anyone else reading this, just noticed you can edit the physics settings in game.project in the Project Explorer.

Was able to increase the pull of gravity there.

1 Like

Hello and welcome to Defold!

For an introduction to the physics in Defold I can recommend reading the Platformer tutorial here: http://www.defold.com/tutorials/platformer/

The tutorial covers the basics on how the physics engine in Defold can be used. It does not cover scaling specifically though. What units are you using currently? Perhaps have a look at the values used in the tutorial and see if you are using values far greater or mush less in your game.

General physics settings are located in the game.project file. Here you will also find a scale variable that you can try tweaking.

Let us know how it works out!

3 Likes

Hi!

Thanks, yes I already went through the Platformer tutorial.

Amending the settings in game.project seems to have worked :slight_smile:

3 Likes

Great!

In engine version 1.2.87 just released we added the possibility to toggle physics debug rendering in runtime. This could be useful to quickly see what is going on in the physics engine. Toggle physics debug draw with message toggle_physics_debug in the same way profiling data can be used in runtime; http://www.defold.com/ref/sys/#toggle_profile

2 Likes