From 27bd3603175d476b8b1483d1fde3dd76c4ea4f21 Mon Sep 17 00:00:00 2001 From: LeenkxTeam Date: Fri, 11 Apr 2025 16:28:33 +0000 Subject: [PATCH] Update lib/haxebullet/hl/bullet.cpp --- lib/haxebullet/hl/bullet.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/haxebullet/hl/bullet.cpp b/lib/haxebullet/hl/bullet.cpp index 1411948..9656baa 100644 --- a/lib/haxebullet/hl/bullet.cpp +++ b/lib/haxebullet/hl/bullet.cpp @@ -579,6 +579,18 @@ HL_PRIM float HL_NAME(btVector3_length0)(_ref(btVector3)* _this) { } DEFINE_PRIM(_F32, btVector3_length0, _IDL); +HL_PRIM float* HL_NAME(btFloatArray_set_raw)( _ref(btFloatArray)* _this, float* value ) { + _unref(_this)->raw = (value); + return value; +} +DEFINE_PRIM(_BYTES,btFloatArray_set_raw,_IDL _BYTES); + +HL_PRIM int* HL_NAME(btIntArray_set_raw)( _ref(btIntArray)* _this, int* value ) { + _unref(_this)->raw = (value); + return value; +} +DEFINE_PRIM(_BYTES,btIntArray_get_raw,_IDL); + HL_PRIM float HL_NAME(btVector3_x0)(_ref(btVector3)* _this) { return _unref(_this)->x(); }