From 62e577267fc43b0928e119acbf6578009fecd0ed Mon Sep 17 00:00:00 2001 From: PouleyKetchoupp Date: Fri, 2 Jul 2021 18:03:44 -0700 Subject: 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. --- doc/classes/PhysicsServer3D.xml | 19 +++++++++++++++ doc/classes/PhysicsTestMotionResult3D.xml | 39 +++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 doc/classes/PhysicsTestMotionResult3D.xml (limited to 'doc/classes') diff --git a/doc/classes/PhysicsServer3D.xml b/doc/classes/PhysicsServer3D.xml index aa1f7597ea..88ce222324 100644 --- a/doc/classes/PhysicsServer3D.xml +++ b/doc/classes/PhysicsServer3D.xml @@ -772,6 +772,25 @@ Sets a body state (see [enum BodyState] constants). + + + + + + + + + + + + + + + + + Returns [code]true[/code] if a collision would result from moving in the given direction from a given point in space. Margin increases the size of the shapes involved in the collision detection. [PhysicsTestMotionResult3D] can be passed to return additional information in. + + diff --git a/doc/classes/PhysicsTestMotionResult3D.xml b/doc/classes/PhysicsTestMotionResult3D.xml new file mode 100644 index 0000000000..08c72ba965 --- /dev/null +++ b/doc/classes/PhysicsTestMotionResult3D.xml @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3