0 votes

I am having a bit of trouble finding info about how to get the main PhysicsDirectSpaceState and the physics server in general...

i looked in the docs but they don't provide enough information about lower level stuff

in Engine by (1,204 points)

https://docs.godotengine.org/en/3.0/classes/class_physicsdirectspacestate.html

i looked in the docs but they don't provide enough information about lower level stuff

I wish there was a engine that did, most engines believe users don't need to know low level code.
Maybe I could help you, I have been running experiments with physics for a while now.

the main idea is to check a couple of points in the ready section to create a reuseable grid for a changing map

he main idea is to check a couple of points in the ready section to create a reuseable grid for a changing map

Using the server to do this feels like over kill. Couldn't you just make some physics bodies and re-use them in the editor?

Any way if you still want to work with the physics server you have to do it in C++:
https://docs.godotengine.org/en/3.0/development/cpp/custom_godot_servers.html

I started here:
https://godotengine.org/qa/34986/how-to-obtain-a-physicsbody2d-from-a-rid

i dont know, but i need the physics process in order to do that and the only way i found was to use the server itself

Please log in or register to answer this question.

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.