#is the rotation property of debug shapes not working for anyone else?

1 messages · Page 1 of 1 (latest)

leaden bobcat
#
function initMouseBox() {
    const circle = new DebugCircle({ x: 16.5, y: 79.5, z: -34.48 });
    circle.rotation = {x: 12, y: 59, z: 23}
    circle.scale = 5;

    const box = new DebugBox({ x: 16.5, y: 79.5, z: -34.48 })
    box.rotation = {x: 32, y: 85, z: 45}
    box.scale = 9;

    debugDrawer.addShape(box);
    debugDrawer.addShape(circle);
}

system.run(() => {
    initMouseBox();
})```
#

the scale property is working properly but not the rotation

dusk canyon
#

I think only when you make it static

#
debugText.rotation = rotation;
debugText.useRotation = true;