Skip to content

Godot Engine Troubleshooting

ScyDev edited this page Jan 3, 2015 · 13 revisions

Until there is a public Godot wiki that can be edited by the community I'll use this here temporary wiki to collect hints, do and don't, caveats.

As time passes, they may get fixed. If so, please edit this page :)

Playing Sounds in AnimationPlayer

  • When working with a play track (playing a sound on a SamplePlayer by keyframe) make sure to use discreete mode instead of continuous, or your sound sample will be triggered every step of the animation.

3D Physics on RigidBody

  • If using self.set_linear_velocity(vel) on a Rigid Body in its _fixed_process(), this overrides other physical forces like gravity.

  • self.set_linear_velocity(vel) must be called in _fixed_process() right from the start when the script beginns running. If not, then physics seem to be suspended for that object and set_linear_velocity() shows no effect. So it can't have an if that tests negative when the script starts, for example. If you bump into that object with another object that you can control, then suddenly physics are working again and set_linear_velocity() shows an effect.

Using PolygonPathFinder

If you'd like to use PolgonPathFinder from code, this PolygonPathFinder-Demo-GD-Script should help you get started.

Inexplicable game crash on function call

See this issue: https://github.com/okamstudio/godot/issues/1040 Maybe this helps you prevent a crash that makes no sense.

Clone this wiki locally