1515#include < cubos/engine/gizmos/plugin.hpp>
1616#include < cubos/engine/gizmos/target.hpp>
1717#include < cubos/engine/input/plugin.hpp>
18+ #include < cubos/engine/interpolation/plugin.hpp>
1819#include < cubos/engine/physics/constraints/distance_constraint.hpp>
1920#include < cubos/engine/physics/plugin.hpp>
2021#include < cubos/engine/physics/solver/plugin.hpp>
@@ -74,6 +75,7 @@ void createScenario(Commands& commands, State& state, Options& options)
7475 .add (Position{glm::vec3{0 .0F , 0 .0F , -2 .0F }})
7576 .add (Rotation{})
7677 .add (PhysicsBundle{.mass = 10000000000000000 .0F , .velocity = {0 .0F , 0 .0F , 0 .0F }})
78+ .add (Interpolated{})
7779 .entity ();
7880
7981 state.b = commands.create ()
@@ -84,6 +86,7 @@ void createScenario(Commands& commands, State& state, Options& options)
8486 .add (Position{glm::vec3{0 .0F , 0 .0F , 2 .0F }})
8587 .add (Rotation{})
8688 .add (PhysicsBundle{.mass = 500 .0F , .velocity = {1 .0F , 0 .0F , 1 .0F }})
89+ .add (Interpolated{})
8790 .entity ();
8891
8992 commands.relate (state.a , state.b ,
@@ -103,6 +106,7 @@ void createScenario(Commands& commands, State& state, Options& options)
103106 .add (Position{glm::vec3{0 .0F , 0 .0F , 0 .0F }})
104107 .add (Rotation{})
105108 .add (PhysicsBundle{.mass = 10000000000000000 .0F , .velocity = {0 .0F , 0 .0F , 0 .0F }})
109+ .add (Interpolated{})
106110 .entity ();
107111
108112 state.b = commands.create ()
@@ -113,6 +117,7 @@ void createScenario(Commands& commands, State& state, Options& options)
113117 .add (Position{glm::vec3{0 .0F , 0 .0F , 5 .0F }})
114118 .add (Rotation{})
115119 .add (PhysicsBundle{.mass = 500 .0F , .velocity = {0 .0F , 0 .0F , 0 .0F }})
120+ .add (Interpolated{})
116121 .entity ();
117122
118123 commands.relate (state.a , state.b ,
@@ -132,6 +137,7 @@ void createScenario(Commands& commands, State& state, Options& options)
132137 .add (Position{glm::vec3{0 .0F , 0 .0F , 0 .0F }})
133138 .add (Rotation{})
134139 .add (PhysicsBundle{.mass = 10000000000000000 .0F , .velocity = {0 .0F , 0 .0F , 0 .0F }})
140+ .add (Interpolated{})
135141 .entity ();
136142
137143 state.b = commands.create ()
@@ -142,6 +148,7 @@ void createScenario(Commands& commands, State& state, Options& options)
142148 .add (Position{glm::vec3{0 .0F , 0 .0F , 5 .0F }})
143149 .add (Rotation{})
144150 .add (PhysicsBundle{.mass = 500 .0F , .velocity = {0 .0F , 0 .0F , 0 .0F }})
151+ .add (Interpolated{})
145152 .entity ();
146153
147154 state.c = commands.create ()
@@ -152,6 +159,7 @@ void createScenario(Commands& commands, State& state, Options& options)
152159 .add (Position{glm::vec3{0 .0F , 0 .0F , 10 .0F }})
153160 .add (Rotation{})
154161 .add (PhysicsBundle{.mass = 500 .0F , .velocity = {0 .0F , 0 .0F , 0 .0F }})
162+ .add (Interpolated{})
155163 .entity ();
156164
157165 commands.relate (state.a , state.b ,
@@ -178,6 +186,7 @@ void createScenario(Commands& commands, State& state, Options& options)
178186 .add (Position{glm::vec3{0 .0F , 0 .0F , 0 .0F }})
179187 .add (Rotation{})
180188 .add (PhysicsBundle{.mass = 10000000000000000 .0F , .velocity = {0 .0F , 0 .0F , 0 .0F }})
189+ .add (Interpolated{})
181190 .entity ();
182191
183192 state.b = commands.create ()
@@ -188,6 +197,7 @@ void createScenario(Commands& commands, State& state, Options& options)
188197 .add (Position{glm::vec3{0 .0F , 0 .0F , -5 .0F }})
189198 .add (Rotation{})
190199 .add (PhysicsBundle{.mass = 500 .0F , .velocity = {0 .0F , 0 .0F , 0 .0F }})
200+ .add (Interpolated{})
191201 .entity ();
192202
193203 state.c = commands.create ()
@@ -198,6 +208,7 @@ void createScenario(Commands& commands, State& state, Options& options)
198208 .add (Position{glm::vec3{0 .0F , 0 .0F , -15 .0F }})
199209 .add (Rotation{})
200210 .add (PhysicsBundle{.mass = 500 .0F , .velocity = {0 .0F , 0 .0F , 5 .0F }})
211+ .add (Interpolated{})
201212 .entity ();
202213
203214 commands.relate (state.a , state.b ,
0 commit comments