Skip to content

Commit

Permalink
fix para name heading (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
QuanyiLi committed Sep 5, 2021
1 parent 043fecf commit e4627eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion metadrive/component/blocks/tollgate.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def _add_building_and_speed_limit(self, road):
# add toll
position = lane.position(lane.length / 2, 0)
building = get_engine().spawn_object(
TollGateBuilding, lane=lane, position=position, heading=lane.heading_theta_at(0)
TollGateBuilding, lane=lane, position=position, heading_theta=lane.heading_theta_at(0)
)
self.dynamic_nodes.append(building.body)
self._block_objects.append(building)
2 changes: 1 addition & 1 deletion metadrive/component/buildings/tollgate_building.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def __init__(self, lane, position, heading_theta, random_seed):
)
self.add_body(air_wall)
self.set_position(position, 0)
self.set_heading_theta(heading)
self.set_heading_theta(heading_theta)

if self.render:
building_model = self.loader.loadModel(AssetLoader.file_path("models", "tollgate", "booth.gltf"))
Expand Down

0 comments on commit e4627eb

Please sign in to comment.