From a7fe7236b5982fd7455655b4d32d8fb595dc2a94 Mon Sep 17 00:00:00 2001 From: xissburg Date: Sun, 9 Oct 2022 20:51:54 -0500 Subject: [PATCH] Assign inertia because it lacks shape. --- examples/current_pos/current_pos.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/current_pos/current_pos.cpp b/examples/current_pos/current_pos.cpp index 81d0d582..1f0c912b 100644 --- a/examples/current_pos/current_pos.cpp +++ b/examples/current_pos/current_pos.cpp @@ -1,3 +1,4 @@ +#include "edyn/math/matrix3x3.hpp" #include #include #include @@ -32,6 +33,7 @@ int main(int argc, char** argv) { auto def = edyn::rigidbody_def(); def.presentation = true; def.mass = 10; + def.inertia = edyn::matrix3x3_identity; def.linvel = {0, 1/0.041, 0}; def.gravity = edyn::vector3_zero; edyn::make_rigidbody(registry, def);