0 votes

I have a SoftBody with a sphere mesh (imported obj, since the Godot sphere shape is not closed). I want to control this soft ball like a player figure, e.g. jump.

KinematicBody has move_and_slide and I can apply forces to RigidBody. How can I move my SoftBody?

in Engine by (12 points)
edited by

1 Answer

0 votes

The softbody has no such methods, it will need to be parented or attached to a kinematicbody or rigidbody and code all the movement in _physics_process. Moving in _process will cause the softbody to lag behind.

by (3,233 points)

Thank you for your answer! Unfortunately, it does not work for me. What I have:

RigidBody with child nodes
- MeshInstance
- CollisionShape
- SoftBody (ignore collisions in this RigidBody)

When I move the RigidBody in _physics_process with self.apply_impulse(Vector3(0,0,0),direction), the RigidBody (the MeshInstance) moves, but the SoftBody stands still.

When I use KinematicBody instead of RigidBody it is the same.

Maybe I ran into this issue?

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.