summaryrefslogtreecommitdiffstats
path: root/doc/classes/KinematicBody2D.xml
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2020-07-13 14:13:38 -0400
committerAaron Franke <arnfranke@yahoo.com>2020-07-13 14:14:11 -0400
commit99864393525a8a61afc4de384650930ef8d3c70f (patch)
treeeeeb6ccfe020a818706173727743296acdf4815f /doc/classes/KinematicBody2D.xml
parentd8b65461e395c6b1f1a06534017294c0a7fe86d8 (diff)
downloadredot-engine-99864393525a8a61afc4de384650930ef8d3c70f.tar.gz
Commit other files changed by file_format.sh
Diffstat (limited to 'doc/classes/KinematicBody2D.xml')
-rw-r--r--doc/classes/KinematicBody2D.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/classes/KinematicBody2D.xml b/doc/classes/KinematicBody2D.xml
index f0f4d83821..455fdad771 100644
--- a/doc/classes/KinematicBody2D.xml
+++ b/doc/classes/KinematicBody2D.xml
@@ -104,7 +104,7 @@
<description>
Moves the body along a vector. If the body collides with another, it will slide along the other body rather than stop immediately. If the other body is a [KinematicBody2D] or [RigidBody2D], it will also be affected by the motion of the other body. You can use this to make moving or rotating platforms, or to make nodes push other nodes.
This method should be used in [method Node._physics_process] (or in a method called by [method Node._physics_process]), as it uses the physics step's [code]delta[/code] value automatically in calculations. Otherwise, the simulation will run at an incorrect speed.
- [code]linear_velocity[/code] is the velocity vector in pixels per second. Unlike in [method move_and_collide], you should [i]not[/i] multiply it by [code]delta[/code] — the physics engine handles applying the velocity.
+ [code]linear_velocity[/code] is the velocity vector in pixels per second. Unlike in [method move_and_collide], you should [i]not[/i] multiply it by [code]delta[/code] — the physics engine handles applying the velocity.
[code]up_direction[/code] is the up direction, used to determine what is a wall and what is a floor or a ceiling. If set to the default value of [code]Vector2(0, 0)[/code], everything is considered a wall. This is useful for topdown games.
If [code]stop_on_slope[/code] is [code]true[/code], body will not slide on slopes when you include gravity in [code]linear_velocity[/code] and the body is standing still.
If the body collides, it will change direction a maximum of [code]max_slides[/code] times before it stops.