From 4940b07403e7c3aae568d5e38d4593f46339640f Mon Sep 17 00:00:00 2001 From: maelstrom Date: Fri, 1 Aug 2025 00:59:08 +0200 Subject: [PATCH] fix(editor): handles crashing on hover --- core/src/handles.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/handles.cpp b/core/src/handles.cpp index 93a1df2..ca101ea 100644 --- a/core/src/handles.cpp +++ b/core/src/handles.cpp @@ -58,7 +58,7 @@ std::optional raycastHandle(rp3d::Ray ray) { // Implement manual detection via boxes instead of... this shit // This code also hardly works, and is not good at all... Hooo nope. rp3d::RigidBody* body = world->createRigidBody(CFrame::IDENTITY + cframe.Position()); - body->addCollider(common.createBoxShape(cframe.Rotation() * Vector3(handleSize(face) / 2.f)), rp3d::Transform::identity()); + body->addCollider(common.createBoxShape((cframe.Rotation() * Vector3(handleSize(face) / 2.f)).Abs()), rp3d::Transform::identity()); rp3d::RaycastInfo info; if (body->raycast(ray, info)) {