The RCareWorldBaseObject
class is a base object class in the RCareWorld environment. It provides methods to interact with objects in the environment, such as loading objects, setting their transforms, getting their positions and rotations, and more.
def __init__(self, env, id:int, name:str, is_in_scene:bool = False)
env
: The environment object.id
: ID of this object.name
: Name of the object.is_in_scene
: Whether the object is in the scene (default: False).load(position=None)
Load the object into the scene in Unity.
Args:
position
(list): The position of the object (optional).destroy()
Destroy the object in the scene.
copy(copy_id:int)
Make a copy of the object in the scene with the specified copy ID.
Args: