diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-04-05 01:24:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-05 01:24:19 +0200 |
commit | 02f9851d0dd4ea43394cb49edae3f28550ba0b8d (patch) | |
tree | dd2c0c32e5c87861a68de196a37406d769312f8c /doc/base | |
parent | 2c4e4432afca009614ffd5ee837d1578f54eb841 (diff) | |
parent | 289abd37101c29063ec114644f304eed13e184e2 (diff) |
Merge pull request #8259 from bojidar-bg/move-slide-wall-fix
Fix is_move_and_slide_on_wall, make move_and_slide floor angle configurable
Diffstat (limited to 'doc/base')
-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 7e4d536299..5bb85aedc1 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"> |