1 registered members (AndrewAMD),
1,248
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: A simple drag and drop 3D objects demo
[Re: Pappenheimer]
#206032
05/10/08 15:51
05/10/08 15:51
|
Joined: Aug 2005
Posts: 1,558 HK
vlau
OP
Serious User
|
OP
Serious User
Joined: Aug 2005
Posts: 1,558
HK
|
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.
Last edited by vlau; 05/10/08 15:52.
|
|
|
Re: A simple drag and drop 3D objects demo
[Re: vlau]
#206120
05/11/08 10:45
05/11/08 10:45
|
Joined: Jun 2001
Posts: 1,004 Dossenbach
nfs42
Serious User
|
Serious User
Joined: Jun 2001
Posts: 1,004
Dossenbach
|
Andreas GSTools - Home of GSTScript 0.9.8: lua scripting for A6/7/8 GSTNet 0.7.9.20: network plugin for A6/7/8 GSTsqlite 1.3.7: sql database plugin for A6/7/8 3DGS Codebase: 57 snippets || 3DGS Downloads: 248 files
|
|
|
Re: A simple drag and drop 3D objects demo
[Re: vlau]
#206244
05/12/08 11:02
05/12/08 11:02
|
Joined: Jun 2001
Posts: 1,004 Dossenbach
nfs42
Serious User
|
Serious User
Joined: Jun 2001
Posts: 1,004
Dossenbach
|
nice, try this
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);
Andreas GSTools - Home of GSTScript 0.9.8: lua scripting for A6/7/8 GSTNet 0.7.9.20: network plugin for A6/7/8 GSTsqlite 1.3.7: sql database plugin for A6/7/8 3DGS Codebase: 57 snippets || 3DGS Downloads: 248 files
|
|
|
Re: A simple drag and drop 3D objects demo
[Re: nfs42]
#206261
05/12/08 14:16
05/12/08 14:16
|
Joined: Aug 2005
Posts: 1,558 HK
vlau
OP
Serious User
|
OP
Serious User
Joined: Aug 2005
Posts: 1,558
HK
|
Cool! update it now.... Ok, Drag them now
Last edited by vlau; 05/12/08 14:51.
|
|
|
|