A simple drag and drop 3D objects demo

Posted By: vlau

A simple drag and drop 3D objects demo - 05/08/08 14:25

Yes, as the title said. Just download it
under my signature if you're interested.
Posted By: Pappenheimer

Re: A simple drag and drop 3D objects demo - 05/09/08 20:05

Ups, forgot to post!
Downloaded it, nice and easy handling!
Great!
Posted By: vlau

Re: A simple drag and drop 3D objects demo - 05/10/08 15:51

Thank you Pappenheimer, Still need some improvements.

If you or anyone know a way to change the size
of the dummy box as same as the 3D object
bounding box at runtime, please let me know.


Posted By: vlau

Re: A simple drag and drop 3D objects demo - 05/11/08 09:50

I've solved the "miss drag" problem, now you can drag any part
of the 3d object at runtime. Download and try it again if you
like.
Posted By: nfs42

Re: A simple drag and drop 3D objects demo - 05/11/08 10:45

dragndrop.c is missing
Posted By: vlau

Re: A simple drag and drop 3D objects demo - 05/12/08 05:55

Oops, sorry for that. Now 3d objects has collision
checking while dragging with exception for cbabe.mdl,
she still move across the ball.mdl, I'll work it out
later.

Please download it again.

Thank you.
Posted By: nfs42

Re: A simple drag and drop 3D objects demo - 05/12/08 11:02

nice, try this
 Code:
dummyObj.scale_x = my.scale_x * 1.1;
dummyObj.scale_y = my.scale_y * 1.1;
dummyObj.scale_z = my.scale_z * 1;
vec_set(dummyObj.pan, my.pan);
...
c_move(dummyObj,vector(-mouse_force.y * moveSpeed * time_step,
  mouse_force.x * moveSpeed * time_step,
  mickey.z * moveSpeed/5 * time_step),
  nullvector,IGNORE_FLAG2); //IGNORE_MODELS);

Posted By: vlau

Re: A simple drag and drop 3D objects demo - 05/12/08 14:16

Cool! update it now....

Ok, Drag them now laugh

© 2024 lite-C Forums