UNIX,Linux,Retele,Programare

18 Jun 08 13:28

zapakitul
Moderator
Locaţie: Buzau
Înregistrat: 21 Jan 07
Mesaje: 1376

[DBPro]Atasarea unui Limb



Un mic exemplu cum putem sa atasam un obiect altuia sub forma de limb

Cod:

s#=-1
a#=1
dist#=100
height#=40
smooth=10

make object cube 1,5
make matrix 1,1000,1000,10,10
make object cube 2,2
scale object 2,80,80,250
sync on : sync rate 0
make mesh from object 1,2
add limb 1,1,1
offset limb 1,1,object position x(1)+4,object position y(1)+1,object position z(1)
delete object 2
do
if upkey() = 1 then move object 1,0.7
if downkey() = 1 then move object 1,-0.7
if leftkey() = 1 then turn object left 1,0.7
if rightkey() = 1 then turn object right 1,0.7
set camera to follow object position x(1),object position y(1),object position z(1),object angle y(1),dist#,height#,smooth,1
sync
loop

Varianta in C++ + GDK o gasiti aici

Editat ultima oară de zapakitul (18 Jun 08 13:30)


A DS , my kindom for a  DS!
http://i174.photobucket.com/albums/w115/zapakitul/ds_userbar.png
Un Pc De Carcasa Noua Blog

Offline

 

» Failure is not an option, it's built-in

tutoriale unix,tutoriale linux,tutoriale bsd

Scuze de offtopic


38.103.63.61 <- te-am prins

Antet forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson



Ethical hacking and programming community