RobotDynamicsLibrary icon indicating copy to clipboard operation
RobotDynamicsLibrary copied to clipboard

What is the Vector in. AddJoint ('x ', new Vector (0.0, 0.0, 440.0))?

Open anan1213095357 opened this issue 1 year ago • 3 comments

I added joints to a new object and mounted the script. After setting it up, the result doesn't work. I want to ask what variables need to be filled in and how to operate them specifically?

anan1213095357 avatar Sep 13 '24 08:09 anan1213095357

The AddJoint method takes two arguments. The first is the rotation axis of revolute joints (x,y,z) and the second is the offset vector to the next joint.

You can look at the example Unity Project which models a Fanuc Robot arm.

EricVoll avatar Sep 13 '24 09:09 EricVoll

The AddJoint method takes two arguments. The first is the rotation axis of revolute joints (x,y,z) and the second is the offset vector to the next joint.

You can look at the example Unity Project which models a Fanuc Robot arm.

I am creating a normal work from your prefabricated body, but if I create a new parent myself, then create three joints and attach scripts to them. At this point, if IK is enabled, it won't work.

anan1213095357 avatar Sep 15 '24 23:09 anan1213095357

Without any code I can't help. "It doesn't work" is not helpful for debugging.

EricVoll avatar Sep 16 '24 06:09 EricVoll