Add recovery_as_collision in move_and_collide/test_move
This commit is contained in:
parent
55bed82b05
commit
a72d5be2c6
8 changed files with 30 additions and 22 deletions
|
|
@ -29,8 +29,8 @@
|
|||
Motion vector to define the length and direction of the motion to test.
|
||||
</member>
|
||||
<member name="recovery_as_collision" type="bool" setter="set_recovery_as_collision_enabled" getter="is_recovery_as_collision_enabled" default="false">
|
||||
If set to [code]true[/code], any depenetration from the recovery phase is reported as a collision; this is used e.g. by [method CharacterBody2D.move_and_slide] for improving floor detection when floor snapping is disabled.
|
||||
If set to [code]false[/code], only collisions resulting from the motion are reported; this is used e.g. by [method PhysicsBody2D.move_and_collide].
|
||||
If set to [code]true[/code], any depenetration from the recovery phase is reported as a collision; this is used e.g. by [CharacterBody2D] for improving floor detection during floor snapping.
|
||||
If set to [code]false[/code], only collisions resulting from the motion are reported, which is generally the desired behaviour.
|
||||
</member>
|
||||
</members>
|
||||
</class>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue