|
645 | 645 | | [`parent_avatar_to_robot`](#parent_avatar_to_robot) | Parent an avatar to a robot. The avatar's position and rotation will always be relative to the robot. Usually you'll want to do this to add a camera to the robot. |
|
646 | 646 | | [`remove_robot_nav_mesh_obstacle`](#remove_robot_nav_mesh_obstacle) | Remove a NavMesh obstacle from a robot (see make_robot_nav_mesh_obstacle). |
|
647 | 647 | | [`set_immovable`](#set_immovable) | Set whether or not the root object of the robot is immovable. Its joints will still be moveable. |
|
| 648 | +| [`set_robot_color`](#set_robot_color) | Set the visual color of a robot in the scene. | |
648 | 649 | | [`set_robot_joint_id`](#set_robot_joint_id) | Set the ID of a robot joint. This can be useful when loading saved data that contains robot joint IDs. Note that the <computeroutput>id</computeroutput> parameter is for the parent robot, not the joint. The joint is located via <computeroutput>joint_name</computeroutput>. Accordingly, this command only works when all of the names of a robot's joints are unique. |
|
649 | 650 | | [`set_robot_obi_collision_material`](#set_robot_obi_collision_material) | Set the Obi collision material of a robot. |
|
650 | 651 | | [`teleport_robot`](#teleport_robot) | Teleport the robot to a new position and rotation. This is a sudden movement that might disrupt the physics simulation. You should only use this command if you really need to (for example, if the robot falls over). |
|
@@ -8130,6 +8131,26 @@ Set whether or not the root object of the robot is immovable. Its joints will st
|
8130 | 8131 |
|
8131 | 8132 | ***
|
8132 | 8133 |
|
| 8134 | +## **`set_robot_color`** |
| 8135 | + |
| 8136 | +Set the visual color of a robot in the scene. |
| 8137 | + |
| 8138 | + |
| 8139 | +```python |
| 8140 | +{"$type": "set_robot_color", "color": {"r": 0.219607845, "g": 0.0156862754, "b": 0.6901961, "a": 1.0}} |
| 8141 | +``` |
| 8142 | + |
| 8143 | +```python |
| 8144 | +{"$type": "set_robot_color", "color": {"r": 0.219607845, "g": 0.0156862754, "b": 0.6901961, "a": 1.0}, "id": 0} |
| 8145 | +``` |
| 8146 | + |
| 8147 | +| Parameter | Type | Description | Default | |
| 8148 | +| --- | --- | --- | --- | |
| 8149 | +| `"color"` | Color | The new color of the robot. | | |
| 8150 | +| `"id"` | int | The ID of the robot in the scene. | 0 | |
| 8151 | + |
| 8152 | +*** |
| 8153 | + |
8133 | 8154 | ## **`set_robot_joint_id`**
|
8134 | 8155 |
|
8135 | 8156 | Set the ID of a robot joint. This can be useful when loading saved data that contains robot joint IDs. Note that the <computeroutput>id</computeroutput> parameter is for the parent robot, not the joint. The joint is located via <computeroutput>joint_name</computeroutput>. Accordingly, this command only works when all of the names of a robot's joints are unique.
|
|
0 commit comments