Skip to content

Instantly share code, notes, and snippets.

@Vrixyz
Created June 20, 2024 14:36
Show Gist options
  • Save Vrixyz/91c7f0e4da81b9658379e3847a12e886 to your computer and use it in GitHub Desktop.
Save Vrixyz/91c7f0e4da81b9658379e3847a12e886 to your computer and use it in GitHub Desktop.
{
"islands": {
"active_dynamic_set": [],
"active_kinematic_set": [],
"active_islands": [],
"active_islands_additional_solver_iterations": [],
"active_set_timestamp": 0
},
"narrow_phase": {
"contact_graph": {
"graph": {
"nodes": [],
"edges": []
}
},
"intersection_graph": {
"graph": {
"nodes": [],
"edges": []
}
},
"graph_indices": {
"data": []
}
},
"bodies": {
"bodies": {
"items": [
{
"Occupied": {
"generation": 0,
"value": {
"pos": {
"position": {
"rotation": [
1.0,
0.0
],
"translation": [
-10.0,
0.0
]
},
"next_position": {
"rotation": [
1.0,
0.0
],
"translation": [
-10.0,
0.0
]
}
},
"mprops": {
"flags": {
"bits": 0
},
"local_mprops": {
"local_com": [
0.0,
0.0
],
"inv_mass": 0.015625,
"inv_principal_inertia_sqrt": 0.038273275
},
"additional_local_mprops": null,
"world_com": [
-10.0,
0.0
],
"effective_inv_mass": [
0.015625,
0.015625
],
"effective_world_inv_inertia_sqrt": 0.038273275
},
"integrated_vels": {
"linvel": [
0.0,
0.0
],
"angvel": 0.0
},
"vels": {
"linvel": [
0.0,
0.0
],
"angvel": 0.0
},
"damping": {
"linear_damping": 0.0,
"angular_damping": 0.0
},
"forces": {
"force": [
0.0,
0.0
],
"torque": 0.0,
"gravity_scale": 1.0,
"user_force": [
0.0,
0.0
],
"user_torque": 0.0
},
"ccd": {
"ccd_thickness": 4.0,
"ccd_max_dist": 5.656854,
"ccd_active": false,
"ccd_enabled": false,
"soft_ccd_prediction": 0.0
},
"ids": {
"active_island_id": 0,
"active_set_id": 0,
"active_set_offset": 0,
"active_set_timestamp": 0
},
"colliders": [
{
"index": 0,
"generation": 0
}
],
"activation": {
"normalized_linear_threshold": 0.4,
"angular_threshold": 0.5,
"time_until_sleep": 2.0,
"time_since_can_sleep": 0.0,
"sleeping": false
},
"changes": {
"bits": 255
},
"body_type": "Fixed",
"dominance": 0,
"enabled": true,
"additional_solver_iterations": 0,
"user_data": 4294967301
}
}
},
{
"Occupied": {
"generation": 0,
"value": {
"pos": {
"position": {
"rotation": [
1.0,
0.0
],
"translation": [
0.0,
0.0
]
},
"next_position": {
"rotation": [
1.0,
0.0
],
"translation": [
0.0,
0.0
]
}
},
"mprops": {
"flags": {
"bits": 0
},
"local_mprops": {
"local_com": [
0.0,
0.0
],
"inv_mass": 0.015625,
"inv_principal_inertia_sqrt": 0.038273275
},
"additional_local_mprops": null,
"world_com": [
0.0,
0.0
],
"effective_inv_mass": [
0.015625,
0.015625
],
"effective_world_inv_inertia_sqrt": 0.038273275
},
"integrated_vels": {
"linvel": [
0.0,
0.0
],
"angvel": 0.0
},
"vels": {
"linvel": [
0.0,
0.0
],
"angvel": 0.0
},
"damping": {
"linear_damping": 0.0,
"angular_damping": 0.0
},
"forces": {
"force": [
0.0,
0.0
],
"torque": 0.0,
"gravity_scale": 1.0,
"user_force": [
0.0,
0.0
],
"user_torque": 0.0
},
"ccd": {
"ccd_thickness": 4.0,
"ccd_max_dist": 5.656854,
"ccd_active": false,
"ccd_enabled": false,
"soft_ccd_prediction": 0.0
},
"ids": {
"active_island_id": 0,
"active_set_id": 0,
"active_set_offset": 0,
"active_set_timestamp": 0
},
"colliders": [
{
"index": 1,
"generation": 0
}
],
"activation": {
"normalized_linear_threshold": 0.4,
"angular_threshold": 0.5,
"time_until_sleep": 2.0,
"time_since_can_sleep": 0.0,
"sleeping": false
},
"changes": {
"bits": 255
},
"body_type": "Dynamic",
"dominance": 0,
"enabled": true,
"additional_solver_iterations": 0,
"user_data": 4294967302
}
}
},
{
"Free": {
"next_free": 3
}
},
{
"Free": {
"next_free": null
}
}
],
"generation": 0,
"free_list_head": 2,
"len": 2
},
"modified_bodies": [
{
"index": 0,
"generation": 0
},
{
"index": 1,
"generation": 0
}
]
},
"colliders": {
"colliders": {
"items": [
{
"Occupied": {
"generation": 0,
"value": {
"coll_type": "Solid",
"shape": {
"Cuboid": {
"half_extents": [
4.0,
4.0
]
}
},
"mprops": {
"Density": 1.0
},
"changes": {
"bits": 511
},
"parent": {
"handle": {
"index": 0,
"generation": 0
},
"pos_wrt_parent": {
"rotation": [
1.0,
0.0
],
"translation": [
0.0,
0.0
]
}
},
"pos": {
"rotation": [
1.0,
0.0
],
"translation": [
-10.0,
0.0
]
},
"material": {
"friction": 0.5,
"restitution": 0.0,
"friction_combine_rule": "Average",
"restitution_combine_rule": "Average"
},
"flags": {
"active_collision_types": {
"bits": 15
},
"collision_groups": {
"memberships": {
"bits": 4294967295
},
"filter": {
"bits": 4294967295
}
},
"solver_groups": {
"memberships": {
"bits": 4294967295
},
"filter": {
"bits": 4294967295
}
},
"active_hooks": {
"bits": 0
},
"active_events": {
"bits": 0
},
"enabled": "Enabled"
},
"bf_data": {
"proxy_index": 4294967295
},
"contact_skin": 0.0,
"contact_force_event_threshold": 0.0,
"user_data": 4294967301
}
}
},
{
"Occupied": {
"generation": 0,
"value": {
"coll_type": "Solid",
"shape": {
"Cuboid": {
"half_extents": [
4.0,
4.0
]
}
},
"mprops": {
"Density": 1.0
},
"changes": {
"bits": 511
},
"parent": {
"handle": {
"index": 1,
"generation": 0
},
"pos_wrt_parent": {
"rotation": [
1.0,
0.0
],
"translation": [
0.0,
0.0
]
}
},
"pos": {
"rotation": [
1.0,
0.0
],
"translation": [
0.0,
0.0
]
},
"material": {
"friction": 0.5,
"restitution": 0.0,
"friction_combine_rule": "Average",
"restitution_combine_rule": "Average"
},
"flags": {
"active_collision_types": {
"bits": 15
},
"collision_groups": {
"memberships": {
"bits": 4294967295
},
"filter": {
"bits": 4294967295
}
},
"solver_groups": {
"memberships": {
"bits": 4294967295
},
"filter": {
"bits": 4294967295
}
},
"active_hooks": {
"bits": 0
},
"active_events": {
"bits": 0
},
"enabled": "Enabled"
},
"bf_data": {
"proxy_index": 4294967295
},
"contact_skin": 0.0,
"contact_force_event_threshold": 0.0,
"user_data": 4294967302
}
}
},
{
"Free": {
"next_free": 3
}
},
{
"Free": {
"next_free": null
}
}
],
"generation": 0,
"free_list_head": 2,
"len": 2
},
"modified_colliders": [
{
"index": 0,
"generation": 0
},
{
"index": 1,
"generation": 0
}
],
"removed_colliders": []
},
"impulse_joints": {
"rb_graph_ids": {
"data": [
[
0,
0
],
[
0,
1
]
]
},
"joint_ids": {
"items": [
{
"Occupied": {
"generation": 0,
"value": 0
}
},
{
"Free": {
"next_free": 2
}
},
{
"Free": {
"next_free": 3
}
},
{
"Free": {
"next_free": null
}
}
],
"generation": 0,
"free_list_head": 1,
"len": 1
},
"joint_graph": {
"graph": {
"nodes": [
{
"weight": {
"index": 0,
"generation": 0
},
"next": [
0,
4294967295
]
},
{
"weight": {
"index": 1,
"generation": 0
},
"next": [
4294967295,
0
]
}
],
"edges": [
{
"weight": {
"body1": {
"index": 0,
"generation": 0
},
"body2": {
"index": 1,
"generation": 0
},
"data": {
"local_frame1": {
"rotation": [
1.0,
0.0
],
"translation": [
0.0,
0.0
]
},
"local_frame2": {
"rotation": [
1.0,
0.0
],
"translation": [
10.0,
0.0
]
},
"locked_axes": {
"bits": 3
},
"limit_axes": {
"bits": 0
},
"motor_axes": {
"bits": 0
},
"coupled_axes": {
"bits": 0
},
"limits": [
{
"min": -3.4028235e38,
"max": 3.4028235e38,
"impulse": 0.0
},
{
"min": -3.4028235e38,
"max": 3.4028235e38,
"impulse": 0.0
},
{
"min": -3.4028235e38,
"max": 3.4028235e38,
"impulse": 0.0
}
],
"motors": [
{
"target_vel": 0.0,
"target_pos": 0.0,
"stiffness": 0.0,
"damping": 0.0,
"max_force": 3.4028235e38,
"impulse": 0.0,
"model": "AccelerationBased"
},
{
"target_vel": 0.0,
"target_pos": 0.0,
"stiffness": 0.0,
"damping": 0.0,
"max_force": 3.4028235e38,
"impulse": 0.0,
"model": "AccelerationBased"
},
{
"target_vel": 0.0,
"target_pos": 0.0,
"stiffness": 0.0,
"damping": 0.0,
"max_force": 3.4028235e38,
"impulse": 0.0,
"model": "AccelerationBased"
}
],
"contacts_enabled": true,
"enabled": "Enabled",
"user_data": 0
},
"impulses": [
0.0,
0.0,
0.0
],
"handle": {
"index": 0,
"generation": 0
}
},
"next": [
4294967295,
4294967295
],
"node": [
0,
1
]
}
]
}
},
"to_wake_up": [
{
"index": 0,
"generation": 0
},
{
"index": 1,
"generation": 0
}
]
},
"multibody_joints": {
"multibodies": {
"items": [
{
"Free": {
"next_free": 1
}
},
{
"Free": {
"next_free": 2
}
},
{
"Free": {
"next_free": 3
}
},
{
"Free": {
"next_free": null
}
}
],
"generation": 0,
"free_list_head": 0,
"len": 0
},
"rb2mb": {
"data": []
},
"connectivity_graph": {
"graph": {
"nodes": [],
"edges": []
}
},
"to_wake_up": []
},
"ccd_solver": {},
"query_pipeline": {
"qbvh": {
"root_aabb": {
"mins": [
3.4028235e38,
3.4028235e38
],
"maxs": [
-3.4028235e38,
-3.4028235e38
]
},
"nodes": [],
"dirty_nodes": [],
"free_list": [],
"proxies": []
},
"dilation_factor": 0.01
},
"integration_parameters": {
"dt": 0.0,
"min_ccd_dt": 0.00016666668,
"contact_damping_ratio": 5.0,
"contact_natural_frequency": 30.0,
"joint_natural_frequency": 1000000.0,
"joint_damping_ratio": 1.0,
"warmstart_coefficient": 1.0,
"length_unit": 100.0,
"normalized_allowed_linear_error": 0.001,
"normalized_max_corrective_velocity": 10.0,
"normalized_prediction_distance": 0.002,
"num_solver_iterations": 1,
"num_additional_friction_iterations": 0,
"num_internal_pgs_iterations": 1,
"num_internal_stabilization_iterations": 2,
"min_island_size": 128,
"max_ccd_substeps": 1
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment