+1 vote

I want to start simulation of a RigidBody while still in the editor, mostly for level design. Rather than placing it manually and having it maybe jump when the level is loaded, it would be great to be able to place it and have it fall into place using physics simulation.
Is this possible? I don't see any options in the editor for enabling simulation, and I'm not sure what it is that makes it only work in the actual game.

Godot version 3.2.3 Stable
in Engine by (650 points)

1 Answer

+2 votes
Best answer

You need tool for that. Attach a script to your scene, add tool keyword, in _ready(): callback activate physics server with Physics2DServer.set_active(true), and reload your scene.

by (123 points)
selected by

Awesome, this is just what I needed! Thanks

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.