diff options
author | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2021-07-02 18:03:44 -0700 |
---|---|---|
committer | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2021-07-02 18:03:44 -0700 |
commit | 62e577267fc43b0928e119acbf6578009fecd0ed (patch) | |
tree | 2d7975d5042dc776277990b960ff1cdd86eb4f8d /servers/register_server_types.cpp | |
parent | eefe276a82c5ed080c10ac7c991e0348642621b2 (diff) | |
download | redot-engine-62e577267fc43b0928e119acbf6578009fecd0ed.tar.gz |
Expose body_test_motion in 3D physics server
Results are exposed through PhysicsTestMotionResult3D, the same way it's
done for 2D.
Also cleaned a few things in the 2D version.
Diffstat (limited to 'servers/register_server_types.cpp')
-rw-r--r-- | servers/register_server_types.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/servers/register_server_types.cpp b/servers/register_server_types.cpp index 59c7dcc7d2..4e309927bb 100644 --- a/servers/register_server_types.cpp +++ b/servers/register_server_types.cpp @@ -220,6 +220,7 @@ void register_server_types() { ClassDB::register_virtual_class<PhysicsDirectBodyState3D>(); ClassDB::register_virtual_class<PhysicsDirectSpaceState3D>(); ClassDB::register_virtual_class<PhysicsShapeQueryResult3D>(); + ClassDB::register_class<PhysicsTestMotionResult3D>(); // Physics 2D GLOBAL_DEF(PhysicsServer2DManager::setting_property_name, "DEFAULT"); |