X-Git-Url: https://eleni.mutantstargoat.com/git/?p=hair;a=blobdiff_plain;f=src%2Fmain.cc;fp=src%2Fmain.cc;h=0fceafea63c05f032933c24706a3a5e5f87ff140;hp=852b7cb337318dae928e6053de52be19c2034f06;hb=8efb44efc8830ffc5ae8eb387926f8b4fd00fb6e;hpb=c595e4a5c4d54f24af1357816a1baecfdeb7d25e diff --git a/src/main.cc b/src/main.cc index 852b7cb..0fceafe 100644 --- a/src/main.cc +++ b/src/main.cc @@ -33,7 +33,7 @@ static int win_width, win_height; static float cam_theta, cam_phi = 25, cam_dist = 8; static float head_rz, head_rx; /* rot angles x, z axis */ static Mat4 head_xform; -static CollSphere coll_sphere; /* sphere used for collision detection */ +//static CollSphere coll_sphere; /* sphere used for collision detection */ int main(int argc, char **argv) { @@ -105,15 +105,15 @@ static bool init() return false; } - coll_sphere.radius = 1.0; - coll_sphere.center = Vec3(0, 0.6, 0.53); +// coll_sphere.radius = 1.0; +// coll_sphere.center = Vec3(0, 0.6, 0.53); if(!hair.init(mesh_head, MAX_NUM_SPAWNS, THRESH)) { fprintf(stderr, "Failed to initialize hair\n"); return false; } - hair.add_collider(&coll_sphere); +// hair.add_collider(&coll_sphere); return true; }