From 4c17d88397d9cdf81e4573404837e5c1754dd024 Mon Sep 17 00:00:00 2001 From: Brian Delhaisse Date: Tue, 16 Jul 2019 00:00:31 +0200 Subject: [PATCH] fix small bug in world --- pyrobolearn/worlds/world.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyrobolearn/worlds/world.py b/pyrobolearn/worlds/world.py index 5b9c4f0..0ab556f 100644 --- a/pyrobolearn/worlds/world.py +++ b/pyrobolearn/worlds/world.py @@ -391,7 +391,8 @@ class World(object): # call the step method for each body for body in self.bodies.values(): - body.step() + if isinstance(body, Body): + body.step() # call simulation step self.sim.step()