From 5693adb3486402cb979902704c0ad2e349079383 Mon Sep 17 00:00:00 2001 From: AzaezelX Date: Tue, 9 May 2023 11:50:43 -0500 Subject: [PATCH] fix massCenter exposure --- Engine/source/T3D/rigidShape.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/source/T3D/rigidShape.cpp b/Engine/source/T3D/rigidShape.cpp index 2cec66d9d..eba9f4bf7 100644 --- a/Engine/source/T3D/rigidShape.cpp +++ b/Engine/source/T3D/rigidShape.cpp @@ -532,7 +532,7 @@ void RigidShapeData::initPersistFields() addGroup("Physics"); addField("enablePhysicsRep", TypeBool, Offset(enablePhysicsRep, RigidShapeData), "@brief Creates a representation of the object in the physics plugin.\n"); - ("massCenter", TypePoint3F, Offset(massCenter, RigidShapeData), "Center of mass for rigid body."); + addField("massCenter", TypePoint3F, Offset(massCenter, RigidShapeData), "Center of mass for rigid body."); addField("massBox", TypePoint3F, Offset(massBox, RigidShapeData), "Size of inertial box."); addField("bodyRestitution", TypeF32, Offset(body.restitution, RigidShapeData), "The percentage of kinetic energy kept by this object in a collision."); addField("bodyFriction", TypeF32, Offset(body.friction, RigidShapeData), "How much friction this object has. Lower values will cause the object to appear to be more slippery.");