summaryrefslogtreecommitdiff
path: root/src/3d/object.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/3d/object.h')
-rw-r--r--src/3d/object.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/3d/object.h b/src/3d/object.h
index a8eb98c..e2cd15a 100644
--- a/src/3d/object.h
+++ b/src/3d/object.h
@@ -9,7 +9,7 @@
#include <memory> // For std::shared_ptr
enum class ObjectType {
- CUBE,
+ CUBE, // Legacy alias for BOX (value 0, kept for binary scene compat)
SPHERE,
PLANE,
TORUS,
@@ -17,6 +17,7 @@ enum class ObjectType {
SKYBOX,
MESH
// Add more SDF types here
+ // NOTE: CUBE == BOX semantically. Use BOX for new code.
};
struct BoundingVolume {
@@ -46,7 +47,7 @@ class Object3D {
std::shared_ptr<void>
shared_user_data; // For tool-specific data managed with shared ownership
- Object3D(ObjectType t = ObjectType::CUBE)
+ Object3D(ObjectType t = ObjectType::BOX)
: position(0, 0, 0), rotation(0, 0, 0, 1), scale(1, 1, 1), type(t),
color(1, 1, 1, 1), velocity(0, 0, 0), mass(1.0f), restitution(0.5f),
is_static(false), mesh_asset_id((AssetId)0), local_extent(1, 1, 1),