Getting the Physics main PhysicsDirectSpaceState

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By rustyStriker

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

PhysicsDirectSpaceState — Godot Engine (3.0) documentation in English

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.

MysteryGM | 2018-12-21 18:42

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

rustyStriker | 2018-12-21 20:00

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++:
Custom Godot servers — Godot Engine (3.0) documentation in English

I started here:
How to obtain a PhysicsBody2D from a RID - Archive - Godot Forum

MysteryGM | 2018-12-22 04:26

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

rustyStriker | 2018-12-22 11:47