How do I access and change 6DOF joint parameters in GDScript?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Unityfugee

How do I change for example the linear Y lower limit?

When I try the code from the API it doesn’t work.

:bust_in_silhouette: Reply From: Magso

Changing these properties requires using the set() and get() methods.

set("linear_limit_y/lower_distance", 10)
print(get("linear_limit_y/lower_distance"))
#prints 10

It doesn’t work, it does nothing and return null

Unityfugee | 2020-03-28 23:04

nvm my get-node for the joint was referencing the wrong node

It’s fixed now

Thanks!

Unityfugee | 2020-03-28 23:07