godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
90.97k stars 21.16k forks source link

Joints spring settings #34395

Open SuperDIMMaX opened 4 years ago

SuperDIMMaX commented 4 years ago

Add settings to spring param. set_flag_z(Generic6DOFJoint.FLAG_ENABLE_LINEAR_LIMIT,true) set_param_y(Generic6DOFJoint.PARAM_LINEAR_UPPER_LIMIT,1) works, but - set_flag_y(Generic6DOFJoint.FLAG_ENABLE_LINEAR_SPRING,true) and stiffness and damping is missing documentation not provide info: set("linear_spring_y/stiffness", 1000) set("linear_spring_y/damping", 50) it says:

float linear_spring_x/stiffness [default: 0.01] set_param_x(value) setter get_param_x() getter

plz add _setparam*_ and in documentation change to _set("linear_springy/stiffness", value) (and all settings/param of joints)

NirobNabil commented 1 year ago

@SuperDIMMaX or @pouleyKetchoupp Can you please elaborate a little on the issue? as far as i understand what you meant is replacing the highlighted part here with set_param_z(PARAM_LINEAR_SPRING_STIFFNESS, value) right?

image

Mickeon commented 9 months ago

Years have passed and I still have no idea what this issue refers to.

At least, the online documentation in 4.x is more explicit about setters like set_param now: image