Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | wombatstampede |
I want to set a member variable of HingeJoint:
The docs say that the name is “float motor/target_velocity”.
But I find no way accessing it. I tried $MyJoint.motor/target_velocity
or $MyJoint."motor/target_velocity"
or $MyJoint.motor_target_velocity
.
It just raises errors.
I can use the set_param method though: $MyJoint.get_param(HingeJoint.PARAM_MOTOR_TARGET_VELOCITY)
But it would make no sense when the docs states member variables that are not accessible.
So: How do I access member variables with “/” in the identifier?