Skip to content

Commit

Permalink
doc string
Browse files Browse the repository at this point in the history
  • Loading branch information
QuanyiLi committed Jan 19, 2024
1 parent ae4b31f commit 9158026
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions metadrive/engine/core/main_camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,27 @@ def _callback_func(cbdata: DisplayRegionDrawCallbackData):
self.cuda_rendered_result = None

def set_bird_view_pos(self, position):
"""
Set the x,y position for the main camera
Args:
position:
Returns:
"""
self.set_bird_view_pos_hpr(position)

def set_bird_view_pos_hpr(self, position, hpr=None):
"""
Set the x,y position and heading, pitch, roll for the main camera
Args:
position:
hpr:
Returns:
"""
self.set_bird_view_pos_hpr(position)
if self.engine.task_manager.hasTaskNamed(self.TOP_DOWN_TASK_NAME):
# adjust hpr
p_pos = panda_vector(position)
Expand Down

0 comments on commit 9158026

Please sign in to comment.