0 votes

I'm trying to create some kind of Spatial which has its x and z position controlled by an AnimationPlayer but its y by collisions (and optionally gravity). Axis-locking a RigidBody doesn't seem to work, presumably because this means nothing can change values on the locked axes. The best solution I've got so far is to have one node being controlled by the animation and the one I'm interested in as a separate KinematicBody which has a _physics_process which moves it towards the animated node.

Is there a better way of doing this?

Godot version 3.3.2
in Engine by (58 points)

Please log in or register to answer this question.

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.