Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bullet] Generic6DOFJoint node error #42286

Open
Tracked by #45022
addmix opened this issue Sep 23, 2020 · 3 comments
Open
Tracked by #45022

[Bullet] Generic6DOFJoint node error #42286

addmix opened this issue Sep 23, 2020 · 3 comments

Comments

@addmix
Copy link
Contributor

addmix commented Sep 23, 2020

Godot version:
3.2.3 stable

OS/device including version:
Windows 10 64-bit

Issue description:
Setting either Node A or Node B throws the warning "set_param: The parameter 2 is deprecated."

Steps to reproduce:
create Generic6DOFJoint and assign either of the two nodes

@Calinou
Copy link
Member

Calinou commented Sep 23, 2020

@addmix Please upload a minimal reproduction project to make this easier to troubleshoot.

@lupoDharkael
Copy link
Contributor

it happens every time so we don't need a reproduction project.
The cause is this line:

PhysicsServer3D::get_singleton()->generic_6dof_joint_set_param(j, Vector3::AXIS_X, PhysicsServer3D::G6DOFJointAxisParam(i), params_x[i]);

when params_x[i] equals 2.

The warning is emited here:

WARN_DEPRECATED_MSG("The parameter " + itos(p_param) + " is deprecated.");

I'm not familiar with this code but if you tell me how to handle this I can make a PR to solve the warning.

@jtnicholl
Copy link
Contributor

This is still present in 3.5.1 and I'm getting it with a PinJoint as well, not just 6DOFJoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants