Skip to content

Commit

Permalink
Add physics stepping
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita Chernyadev committed Mar 25, 2024
1 parent 724a5fb commit 206fa57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mojo/mojo.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,10 @@ def mark_dirty(self):
self._dirty = True

def step(self):
"""Advances the physics state by 1 step."""
if self._dirty:
self._create_physics_from_model()
pass
self._physics.step()

def get_material(self, path: str) -> mjcf.Element:
return self._texture_store.get(path, None)
Expand Down

0 comments on commit 206fa57

Please sign in to comment.