Class that keeps a list of the joints of the robot arm and can control them
More...
|
| void | ActuateJoint (int jointIndex, float step) |
| | Actuate one joint of the robot arm More...
|
| |
|
void | ResetJoints () |
| | Set all the targets of the robot joints to 0.
|
| |
|
void | RandomizeJoints () |
| | Set all the targets of the robot joints to a random amount of degrees between -20 and 20, clamped by the limits of the joints.
|
| |
|
|
int | stepSize = 10 |
| | Actions are between -1 and 1. This variable is multiplied with the action and that is how many degrees the joint wil actuate
|
| |
|
|
List< ArticulationBody > | ArticulationBodies [get, set] |
| | List of joints of the robot arm
|
| |
Class that keeps a list of the joints of the robot arm and can control them
◆ ActuateJoint()
| void JointController.ActuateJoint |
( |
int |
jointIndex, |
|
|
float |
step |
|
) |
| |
|
inline |
Actuate one joint of the robot arm
- Parameters
-
| jointIndex | Which joint should be actuated. Starts at the base of the robot arm |
| step | Value that is clamped between -1 and 1, indicating which direction the actuation should be in and how big it should be. It is multiplied by the stepSize member, so the maximum actuation is stepSize degrees. |
The documentation for this class was generated from the following file:
- unity/Assets/Scripts/JointController.cs