# Seeking feedback on Havok Physics visualizations for debug

**URL:** <https://forum.babylonjs.com/t/seeking-feedback-on-havok-physics-visualizations-for-debug/53749>\
**Category:** Demos and projects\
**Created:** [September 25, 2024, 11:45pm UTC](https://forum.babylonjs.com/t/seeking-feedback-on-havok-physics-visualizations-for-debug/53749 "2024-09-25T23:45:51Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![HiGreg](https://avatars.discourse-cdn.com/v4/letter/h/c5a1d2/32.png) [@HiGreg](https://forum.babylonjs.com/u/HiGreg)\
**Post date:** [October 15, 2024, 4:44pm UTC](https://forum.babylonjs.com/t/seeking-feedback-on-havok-physics-visualizations-for-debug/53749/14 "2024-10-15T16:44:57Z")

</div>

_edit for words_

If my theory above _is correct_ on the linear limits essentially being a box containing boxB pivot, then editing seems straightforward with a gizmo. I haven’t yet played at all with gizmos yet.

I haven’t worked out the exact positioning of the elements for showing angular limits, but here’s a rough ~~(and incorrect)~~ draft of what I’m working on for the angular limits. If my working theory is correct, I can add axis balls fixed in boxB local space, then add rotational disks centered on pivotB yet having the rotation of boxA’s axis/perp/normal _in world space_. Each of the three axis balls are contained in their respective rotational disk. My thought is to show the disk and ball depending on the axis’ ANGULAR mode.

- LIMITED - show a disk as arc that contains the ball. The arc ends/edges are located at the limits.
- LOCKED - narrow disk arc “pointing” to the associated ball, visualizing that the ball is “locked in place”
- FREE - no disk, no ball

The big balls and white arc in the center _of the playground below_ are me just working out angles and rotations.

Some of the constraints have a blue, red, and/or green disk that represent the ANGULAR freedom of movement. These disks are incorrect_ly placed/rotated_ , but show the idea.

Comments welcome as I continue to develop the concept and fix the code.

> **[Babylon.js Playground](https://playground.babylonjs.com/#O8FSDA%2310)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL and WebGPU 3D scenes

I’m not sure how yet, but I think I could enable the toggling of each axis’ mode (FREE/LOCKED/LIMITED) and enable the modification of the disks edges and/or the disks’ rotation. I think that constitutes the full editing of ANGULAR degrees of freedom?

Combined with similar toggling on the LINEAR degrees of freedom as well as editing the “LINEAR box” described above (i.e. the boxes shown in the playground), then we have full editing of constraints?

---

_[View the full topic](https://forum.babylonjs.com/t/seeking-feedback-on-havok-physics-visualizations-for-debug/53749)._
