From 66561ea2fb7f76c408c08e21132e58914329faba Mon Sep 17 00:00:00 2001 From: aura Date: Fri, 27 Feb 2026 10:08:07 +0100 Subject: more movement --- src/game/object.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/game/object.h') diff --git a/src/game/object.h b/src/game/object.h index 8191ab7..80ade03 100644 --- a/src/game/object.h +++ b/src/game/object.h @@ -42,6 +42,10 @@ struct OBJECT_PROP { type name; \ OBJECT_PROP __##name##_props{ #name, (void*)&name, sizeof(type), &this->props, this } +#define OBJVARV( type, name, val ) \ + type name{ type( val ) }; \ + OBJECT_PROP __##name##_props{ #name, (void*)&name, sizeof(type), &this->props, this } + #define OBJVAR_STR( name, len ) \ char name##[len]; \ OBJECT_PROP __##name##_props{ #name, (void*)name, len, &this->props, this } @@ -61,6 +65,9 @@ struct OBJECT { OBJVAR( VEC3, pos ); OBJVAR( VEC3, rot ); OBJVAR( I32, idx ); + OBJVAR( VEC3, velocity ); + OBJVAR( VEC3, mins ); + OBJVAR( VEC3, maxs ); }; inline const char* obj_classid_to_name( U32 classid ) { -- cgit v1.2.3