Closed TK-21st closed 5 years ago
Hi. The wiki entry was incorrect. sim.createCube takes a Vec and an int, i.e. sim.createCube(const Vec & v, float length). The length controls the side lengths for all sides. I've fixed the documentation. As for the sim.start() error, does that happen immediately, or after the simulation has run for 10 seconds?
@ja3067 that sim.start()
error happens immediately after it starts running. And the simulation is broken in the sense that I don't see a cube bouncing but only the green ground.
@TK-21st Thank you! We'll fix the issue tomorrow.
I think we have fixed these issues, except perhaps the for loop issue (which we were not able to reproduce). Can you try any of the examples in the wiki and let us know if you still have the issue? In particular, the sample code
#include <Titan/sim.h>
int main() {
Simulation sim;
sim.createLattice(Vec(0, 0, 10), Vec(5, 5, 5), 5, 5, 5); // create lattice with center at (0, 0, 10) and given dimensions
sim.createPlane(Vec(0, 0, 1), 0); // create constraint plane
sim.start();
}
works correctly for us. We think we've updated all the documentation to reflect the current API, but let us know if there are still issues you encounter. Thank you!
@ja3067 Latest patch removes the error for the example shown above. Thanks!
Example gives main.cpp have the following issues
createCube not defined
sim.start()
need to have a for-loop afterwardsotherwise I got this: