Rube Goldberg Machine 1.0
This is the base code for Rube Goldberg designed for the CS296 Software Systems Lab
|
Simulation settings. Some can be controlled in the GUI. More...
#include <cs296_base.hpp>
Public Member Functions | |
settings_t () | |
Notice the initialization of the class members in the constructor Default Values of the struct provided after a colon. | |
Public Attributes | |
b2Vec2 | view_center |
float32 | hz |
int32 | velocity_iterations |
int32 | position_iterations |
int32 | draw_shapes |
int32 | draw_joints |
int32 | draw_AABBs |
int32 | draw_pairs |
int32 | draw_contact_points |
int32 | draw_contact_normals |
int32 | draw_contact_forces |
int32 | draw_friction_forces |
int32 | draw_COMs |
int32 | draw_stats |
int32 | draw_profile |
int32 | enable_warm_starting |
int32 | enable_continuous |
int32 | enable_sub_stepping |
int32 | pause |
int32 | single_step |
Simulation settings. Some can be controlled in the GUI.
Simulation settings of the Box2D simulation. Some can be controlled in the GUI.
Definition at line 48 of file cs296_base.hpp.
cs296::settings_t::settings_t | ( | ) | [inline] |
Notice the initialization of the class members in the constructor Default Values of the struct provided after a colon.
hz(Frequency (Frame Rate) of the Simulation) = 60 Hz
Velocity Iterations = 8 :The constarint solver computes the impulses necessary for the bodies to move correctly
Position Iterations = 3 :The constraint solver adjusts the positions of the bodies to reduce overlap and joint detachment
Definition at line 52 of file cs296_base.hpp.
: view_center(0.0f, 20.0f), hz(60.0f), velocity_iterations(8), position_iterations(3), draw_shapes(1), draw_joints(1), draw_AABBs(0), draw_pairs(0), draw_contact_points(0), draw_contact_normals(0), draw_contact_forces(0), draw_friction_forces(0), draw_COMs(0), draw_stats(0), draw_profile(0), enable_warm_starting(1), enable_continuous(1), enable_sub_stepping(0), pause(0), single_step(0) {}
Definition at line 92 of file cs296_base.hpp.
Definition at line 98 of file cs296_base.hpp.
Definition at line 96 of file cs296_base.hpp.
Definition at line 95 of file cs296_base.hpp.
Definition at line 94 of file cs296_base.hpp.
Definition at line 97 of file cs296_base.hpp.
Definition at line 91 of file cs296_base.hpp.
Definition at line 93 of file cs296_base.hpp.
Definition at line 100 of file cs296_base.hpp.
Definition at line 90 of file cs296_base.hpp.
Definition at line 99 of file cs296_base.hpp.
Definition at line 102 of file cs296_base.hpp.
Definition at line 103 of file cs296_base.hpp.
Definition at line 101 of file cs296_base.hpp.
float32 cs296::settings_t::hz |
hz(Frequency (Frame Rate) of the Simulation)
Definition at line 83 of file cs296_base.hpp.
int32 cs296::settings_t::pause |
Definition at line 104 of file cs296_base.hpp.
Position Iterations:The constraint solver adjusts the positions of the bodies to reduce overlap and joint detachment
Definition at line 89 of file cs296_base.hpp.
Definition at line 105 of file cs296_base.hpp.
Velocity Iterations:The constraint solver computes the impulses necessary for the bodies to move correctly
Definition at line 86 of file cs296_base.hpp.
Definition at line 81 of file cs296_base.hpp.