def add_ocean_floor(self, depth=100): id = PybulletAPI.loadURDF(resource_filename("lobster_simulator", "data/plane1000.urdf"), base_position=Vec3((0, 0, depth))) texture = PybulletAPI.loadTexture( resource_filename("lobster_simulator", "data/checker_blue.png")) PybulletAPI.changeVisualShape(id, texture, rgbaColor=[1, 1, 1, 1])
def __init__(self, time: SimulationTime): water_id = PybulletAPI.loadURDF( resource_filename("lobster_simulator", "data/water_surface.urdf"), Vec3([0, 0, 0])) self.water_texture = PybulletAPI.loadTexture( resource_filename("lobster_simulator", "data/water_texture.png")) PybulletAPI.changeVisualShape(water_id, textureUniqueId=self.water_texture, rgbaColor=[0, 0.3, 1, 0.5])