diff options
author | fabriceci <fabricecipolla@gmail.com> | 2021-07-09 16:16:15 +0200 |
---|---|---|
committer | fabriceci <fabricecipolla@gmail.com> | 2021-07-15 11:54:43 +0200 |
commit | cee814e4dfcd2c48fd319706b798ed8d76ef0c17 (patch) | |
tree | 3b53c4765e339267252458e3a87d99e1bd97eaf9 /doc | |
parent | f79958a30e1808b8ea71c6c051e7d41f073876fe (diff) |
Fixing 2D moving platform logic
Fixing by applying the movement in two steps, first the platform
movement, and then the body movement. Plus, add the platform movement
when we areĀ on_wall.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/PhysicsServer2D.xml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/classes/PhysicsServer2D.xml b/doc/classes/PhysicsServer2D.xml index 67b27b174f..b492ddaa25 100644 --- a/doc/classes/PhysicsServer2D.xml +++ b/doc/classes/PhysicsServer2D.xml @@ -820,6 +820,10 @@ </argument> <argument index="5" name="result" type="PhysicsTestMotionResult2D" default="null"> </argument> + <argument index="6" name="exclude_raycast_shapes" type="bool" default="true"> + </argument> + <argument index="7" name="exclude" type="Array" default="[]"> + </argument> <description> 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. [PhysicsTestMotionResult2D] can be passed to return additional information in. </description> |