diff options
author | Bojidar Marinov <bojidar.marinov.bg@gmail.com> | 2017-04-04 16:35:33 +0300 |
---|---|---|
committer | Bojidar Marinov <bojidar.marinov.bg@gmail.com> | 2017-04-04 18:32:27 +0300 |
commit | 289abd37101c29063ec114644f304eed13e184e2 (patch) | |
tree | a3c0f64e9c0157a3618c79d526908c204b3d9bd8 /doc/base/classes.xml | |
parent | 46bc14e66fe90430f1d74cdab6cca6acb5b2a3f6 (diff) |
Fix is_move_and_slide_on_wall, make move_and_slide floor angle configurable
Fixes #7313
Diffstat (limited to 'doc/base/classes.xml')
-rw-r--r-- | doc/base/classes.xml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/base/classes.xml b/doc/base/classes.xml index f3d73deaf0..17ae03a636 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -21836,6 +21836,8 @@ </argument> <argument index="3" name="max_bounces" type="int" default="4"> </argument> + <argument index="4" name="floor_max_angle" type="float" default="0.785398"> + </argument> <description> </description> </method> @@ -21846,6 +21848,7 @@ </argument> <description> Move the body to the given position. This is not a teleport, and the body will stop if there is an obstacle. The returned vector is how much movement was remaining before being stopped. + [code]floor_max_angle[/code] is in radians (default is pi/4), and filters which obstacles should be considered as floors/cellings instead of walls. </description> </method> <method name="revert_motion"> |