removed the translation daping and rotation dampign because they would override the alreayd existedt under Dynamics panel

This commit is contained in:
2025-07-13 04:23:51 +02:00
parent de6bf8a08a
commit a1ee335c68
3 changed files with 2 additions and 10 deletions

View File

@ -2830,8 +2830,8 @@ class LeenkxExporter:
deact_av = 0.0
deact_time = 0.0
body_params = {}
body_params['linearDamping'] = bobject.lnx_rb_linear_damping
body_params['angularDamping'] = bobject.lnx_rb_angular_damping
body_params['linearDamping'] = rb.linear_damping
body_params['angularDamping'] = rb.angular_damping
body_params['linearFactorsX'] = lx
body_params['linearFactorsY'] = ly
body_params['linearFactorsZ'] = lz

View File

@ -377,9 +377,6 @@ def init_properties():
bpy.types.Object.lnx_rb_angular_velocity_min = FloatProperty(name="Angular Velocity Min", description="Minimum angular velocity", default=0.0, min=0.0)
bpy.types.Object.lnx_rb_angular_velocity_max = FloatProperty(name="Angular Velocity Max", description="Maximum angular velocity", default=0.0, min=0.0)
# Damping controls
bpy.types.Object.lnx_rb_linear_damping = FloatProperty(name="Linear Damping", description="Linear damping factor", default=0.04, min=0.0, max=1.0)
bpy.types.Object.lnx_rb_angular_damping = FloatProperty(name="Angular Damping", description="Angular damping factor", default=0.1, min=0.0, max=1.0)
# Lock translation axes
bpy.types.Object.lnx_rb_lock_translation_x = BoolProperty(name="Lock Translation X", description="Lock movement along X axis", default=False)

View File

@ -253,11 +253,6 @@ class LNX_PT_PhysicsPropsPanel(bpy.types.Panel):
layout.prop(obj, 'lnx_rb_angular_velocity_min')
layout.prop(obj, 'lnx_rb_angular_velocity_max')
# Damping section
layout.separator()
layout.label(text="Damping:")
layout.prop(obj, 'lnx_rb_linear_damping')
layout.prop(obj, 'lnx_rb_angular_damping')
# Lock Translation section
layout.separator()