This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

If you're confused, what I am asking is how do I get the current position of a kinematic body and a vehicle body and add there current pos by a certain number?
(with a fps starter I move around and I press a key to activate the script with the adding to current pos feature basically a dash thing)


Godot 3D

Godot version v3.5.stable.mono.official [991bb6ac7]
in Engine by (15 points)

1 Answer

+1 vote
Best answer

maybe something like that?

Var addPos = 5
Position.x += position.x + addPos

sorry I'm on mobile and can't test the code.

by (286 points)
selected by

Thank you! I'll test it out, but I appreciate your help! I'll Reply again if I see an error or it works. I'll also send the code. Thank you!

So, how do I get the rotation and move forward a few units where its rotating using this script here: apply_impulse(Vector3(Rotation), Vector3(Position))

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 [email protected] with your username.