Skip to content

Commit

Permalink
[builder] add static physic type for robot
Browse files Browse the repository at this point in the history
to be able to record animation.
no_collision did not record object frames.
  • Loading branch information
PierrickKoch committed Jun 30, 2016
1 parent 8381e2e commit 061ffc1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/morse/builder/morsebuilder.py
Expand Up @@ -208,6 +208,14 @@ def set_no_collision(self):
""" Configure this robot to not use physics at all """
self._bpy_object.game.physics_type = 'NO_COLLISION'

def set_physics_type(self, physics_type='STATIC'):
""" Configure this robot physics type """
self._bpy_object.game.physics_type = physics_type

def set_use_record_animation(self, use_record_animation=True):
""" Record animation objects without physics """
self._bpy_object.game.use_record_animation = use_record_animation

def set_dynamic(self):
self._bpy_object.game.physics_type = 'DYNAMIC'
self._bpy_object.game.use_actor = True
Expand Down

0 comments on commit 061ffc1

Please sign in to comment.