0 votes

Is there an other way to setlineardamp() of a rigidbody2d with different values to the axis?

set_linear_damp(5,2)
set_linear_damp.x=5
set_linear_damp.y=2

thanks

great engine, keep up the good work =)

in Engine by (17 points)
edited by

1 Answer

+2 votes
Best answer

There is no way to set a different damp for each axes. If you think it's needed, you can eventually ask for it on Github, but there are ways to do it manually (and how about choosing a different damping for a diagonal axis? too specific for the engine to handle that).

You can set linear damp to 0, and write a script that will do custom damping yourself by modifying the linear velocity over time (set_linear_velocity).

by (28,788 points)
selected by
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 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.