About Store Forum Documentation Contact



Post Reply 
Mesh clicked
Author Message
Rogus Offline
Member

Post: #1
Mesh clicked
Hi.
I'm trying detect if mouse is under mesh or meshpart and if it's clicked like in Model Editor. Somebody could tell me how i can do it?
01-13-2013 12:51 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Mesh clicked
Please take a look at
Mesh Cuts.h
Bool Sweep(C Vec &point, C Vec &move, C MeshBase &mshb, C Matrix *mesh_matrix=NULL, Flt *hit_frac=NULL, Vec *hit_pos=NULL, Int *hit_face=NULL , Bool test_quads_as_2_tris=true, Bool two_sided=false ); // 'two_sided'=if mesh faces are two-sided
Bool Sweep(C Vec &point, C Vec &move, C MeshRender &mshr, C Matrix *mesh_matrix=NULL, Flt *hit_frac=NULL, Vec *hit_pos=NULL, Int *hit_face=NULL , Bool two_sided=false ); // 'two_sided'=if mesh faces are two-sided
Bool Sweep(C Vec &point, C Vec &move, C MeshPart &part, C Matrix *mesh_matrix=NULL, Flt *hit_frac=NULL, Vec *hit_pos=NULL, Int *hit_face=NULL , Bool test_quads_as_2_tris=true, Int two_sided=-1, Bool ignore_hidden=true); // , 'two_sided'=if mesh faces are two-sided (use -1 to set according to material cull), 'ignore_hidden'=if ignore hidden mesh parts
Bool Sweep(C Vec &point, C Vec &move, C MeshLod &mesh, C Matrix *mesh_matrix=NULL, Flt *hit_frac=NULL, Vec *hit_pos=NULL, Int *hit_face=NULL, Int *hit_part=NULL , Bool test_quads_as_2_tris=true, Int two_sided=-1, Bool ignore_hidden=true); // 'hit_part'=index of hit MeshPart , 'two_sided'=if mesh faces are two-sided (use -1 to set according to material cull), 'ignore_hidden'=if ignore hidden mesh parts
Bool Sweep(C Vec &point, C Vec &move, C Mesh &mesh, C Matrix *mesh_matrix=NULL, Flt *hit_frac=NULL, Vec *hit_pos=NULL, Int *hit_face=NULL, Int *hit_part=NULL , Bool test_quads_as_2_tris=true, Int two_sided=-1, Bool ignore_hidden=true); // 'hit_part'=index of hit MeshPart , 'two_sided'=if mesh faces are two-sided (use -1 to set according to material cull), 'ignore_hidden'=if ignore hidden mesh parts
Bool Sweep(C Vec &point, C Vec &move, C MeshGroup &mshg, C Matrix *mesh_matrix=NULL, Flt *hit_frac=NULL, Vec *hit_pos=NULL, Int *hit_face=NULL, Int *hit_part=NULL, Int *hit_mesh=NULL, Bool test_quads_as_2_tris=true, Int two_sided=-1, Bool ignore_hidden=true); // 'hit_part'=index of hit MeshPart, 'hit_mesh'=index of hit Mesh, 'two_sided'=if mesh faces are two-sided (use -1 to set according to material cull), 'ignore_hidden'=if ignore hidden mesh parts
01-19-2013 10:00 PM
Find all posts by this user Quote this message in a reply
Post Reply