0 votes

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 (527 points)

1 Answer

+1 vote
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 (50 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 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 webmaster@godotengine.org with your username.