diff --git a/leenkx/blender/lnx/props.py b/leenkx/blender/lnx/props.py index 4a5a666..211c273 100644 --- a/leenkx/blender/lnx/props.py +++ b/leenkx/blender/lnx/props.py @@ -197,6 +197,10 @@ def init_properties(): items=[('Bullet', 'Bullet', 'Bullet'), ('Oimo', 'Oimo', 'Oimo')], name="Physics Engine", default='Bullet', update=assets.invalidate_compiler_cache) + bpy.types.World.lnx_physics_fixed_step = FloatProperty( + name="Fixed Step", default=1/60, min=0, max=1, + description="Physics steps for fixed update" + ) bpy.types.World.lnx_physics_dbg_draw_wireframe = BoolProperty( name="Collider Wireframes", default=False, description="Draw wireframes of the physics collider meshes and suspensions of raycast vehicle simulations" @@ -357,6 +361,7 @@ def init_properties(): bpy.types.Object.lnx_rb_trigger = BoolProperty(name="Trigger", description="Disable contact response", default=False) bpy.types.Object.lnx_rb_deactivation_time = FloatProperty(name="Deactivation Time", description="Delay putting rigid body into sleep", default=0.0) bpy.types.Object.lnx_rb_ccd = BoolProperty(name="Continuous Collision Detection", description="Improve collision for fast moving objects", default=False) + bpy.types.Object.lnx_rb_interpolate = BoolProperty(name="Interpolation", description="Smooths out the object's transform on physics steps", default=False) bpy.types.Object.lnx_rb_collision_filter_mask = bpy.props.BoolVectorProperty( name="Collision Collections Filter Mask", description="Collision collections rigid body interacts with",