0 votes

Hello, my question is what the title says,

Let's say i have two points, a and b.

How i could move a kinematicbody smoothly between a and b?

Thanks

Godot version Godot 3.3.2 mono
in Engine by (22 points)
edited by

2 Answers

0 votes

How do you want to move it?

  • Use an animation
  • Use lerp on its transform.
  • Use a Tween and interpolate between a and b.
  • Define a path and use a PathFollow node.

Note a KinematicBody interacts with physics so you probably mean to use a RigidBody instead if you don't intend to use move_and_slide (or related functions).

by (418 points)

I'm moving the kinematic in the physics process, so i want to use moveandslide. I would want to know how to move to "b" with moveandslide, and how much velocity should i add per physics tick relative to the distance between the two points (a and b). Thanks

0 votes

After seeing this video https://youtu.be/kwbPThtHbvA, i just realized how stupid i was, i could explain it on this answer but the video explains it almost perfectly. Check it out, is very simple!

by (22 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.