mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 19:42:43 +00:00
Updated tutorial_kinematic_char (markdown)
parent
d9ecf14163
commit
a681aac1ee
@ -128,7 +128,7 @@ The solution? This situation is solved by "sliding" by the collision normal. Kin
|
||||
|
||||
So what we want to do is this:
|
||||
|
||||
<p align="center"><img src="images/motion_reflection.png"></p>
|
||||
<p align="center"><img src="images/motion_reflect.png"></p>
|
||||
|
||||
When colliding, the function move() returns the "remainder" of the motion vector. That means, if the motion vector is 40 pixels, but collision happened at 10 pixels, the same vector but 30 pixels long is returned.
|
||||
The correct way to solve the motion is, then, to slide by the normal this way:
|
||||
|
Loading…
Reference in New Issue
Block a user