moisesjpelaez - Oimo Physics

This commit is contained in:
Onek8 2025-05-11 19:41:09 +00:00
parent 6d4c1a680b
commit ef724ae323

View File

@ -197,38 +197,38 @@ def init_properties():
items=[('Bullet', 'Bullet', 'Bullet'), items=[('Bullet', 'Bullet', 'Bullet'),
('Oimo', 'Oimo', 'Oimo')], ('Oimo', 'Oimo', 'Oimo')],
name="Physics Engine", default='Bullet', update=assets.invalidate_compiler_cache) name="Physics Engine", default='Bullet', update=assets.invalidate_compiler_cache)
bpy.types.World.lnx_bullet_dbg_draw_wireframe = BoolProperty( bpy.types.World.lnx_physics_dbg_draw_wireframe = BoolProperty(
name="Collider Wireframes", default=False, name="Collider Wireframes", default=False,
description="Draw wireframes of the physics collider meshes and suspensions of raycast vehicle simulations" description="Draw wireframes of the physics collider meshes and suspensions of raycast vehicle simulations"
) )
bpy.types.World.lnx_bullet_dbg_draw_raycast = BoolProperty( bpy.types.World.lnx_physics_dbg_draw_raycast = BoolProperty(
name="Trace Raycast", default=False, name="Raycasts", default=False,
description="Draw raycasts to trace the results" description="Draw raycasts to trace the results"
) )
bpy.types.World.lnx_bullet_dbg_draw_aabb = BoolProperty( bpy.types.World.lnx_physics_dbg_draw_aabb = BoolProperty(
name="Axis-aligned Minimum Bounding Boxes", default=False, name="Axis-aligned Minimum Bounding Boxes", default=False,
description="Draw axis-aligned minimum bounding boxes (AABBs) of the physics collider meshes" description="Draw axis-aligned minimum bounding boxes (AABBs) of the physics collider meshes"
) )
bpy.types.World.lnx_bullet_dbg_draw_contact_points = BoolProperty( bpy.types.World.lnx_physics_dbg_draw_contact_points = BoolProperty(
name="Contact Points", default=False, name="Contact Points", default=False,
description="Visualize contact points of multiple colliders" description="Visualize contact points of multiple colliders"
) )
bpy.types.World.lnx_bullet_dbg_draw_constraints = BoolProperty( bpy.types.World.lnx_physics_dbg_draw_constraints = BoolProperty(
name="Constraints", default=False, name="Constraints", default=False,
description="Draw axis gizmos for important constraint points" description="Draw axis gizmos for important constraint points"
) )
bpy.types.World.lnx_bullet_dbg_draw_constraint_limits = BoolProperty( bpy.types.World.lnx_physics_dbg_draw_constraint_limits = BoolProperty(
name="Constraint Limits", default=False, name="Constraint Limits", default=False,
description="Draw additional constraint information such as distance or angle limits" description="Draw additional constraint information such as distance or angle limits"
) )
bpy.types.World.lnx_bullet_dbg_draw_normals = BoolProperty( bpy.types.World.lnx_physics_dbg_draw_normals = BoolProperty(
name="Face Normals", default=False, name="Face Normals", default=False,
description=( description=(
"Draw the normal vectors of the triangles of the physics collider meshes." "Draw the normal vectors of the triangles of the physics collider meshes."
" This only works for mesh collision shapes" " This only works with Bullet physics, for mesh collision shapes"
) )
) )
bpy.types.World.lnx_bullet_dbg_draw_axis_gizmo = BoolProperty( bpy.types.World.lnx_physics_dbg_draw_axis_gizmo = BoolProperty(
name="Axis Gizmos", default=False, name="Axis Gizmos", default=False,
description=( description=(
"Draw a small axis gizmo at the origin of the collision shape." "Draw a small axis gizmo at the origin of the collision shape."