Skip to content

Commit

Permalink
Timestep bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stepjam committed Mar 30, 2024
1 parent efe2b61 commit 0b7f6b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mojo/mojo.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def data(self):
return self._physics.data.ptr

def set_timestep(self, timestep: float):
self.root_element.mjcf.compiler.lengthrange.timestep = timestep
self.root_element.mjcf.option.timestep = timestep

def launch_viewer(self, passive: bool = False) -> None:
# passive viewer does not step.
Expand Down

0 comments on commit 0b7f6b1

Please sign in to comment.