Skip to content

Commit

Permalink
Assign inertia because it lacks shape.
Browse files Browse the repository at this point in the history
  • Loading branch information
xissburg committed Oct 15, 2022
1 parent a58ac3b commit a7fe723
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/current_pos/current_pos.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "edyn/math/matrix3x3.hpp"
#include <edyn/edyn.hpp>
#include <edyn/time/time.hpp>
#include <entt/entt.hpp>
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit a7fe723

Please sign in to comment.