Can someone helpme ?
I want to rotate limbs over his own axis without translation but I don't get it.
My code:
sync on
sync rate 60
load object "sample_car.3ds",1
do
text 20,20,"scancode: "+str$(scancode())
y=wrapvalue(y+1): yrotate object 1,y
rotate limb 1,4,wrapvalue(limbx),wrapvalue(limby),0
rotate limb 1,3,wrapvalue(limbx),wrapvalue(limby),0
rotate limb 1,2,wrapvalue(limbx),0,0
rotate limb 1,1,wrapvalue(limbx),0,0
if limby>20 then limby=20
if limby<-20 then limby=-20
if keystate(200)=1 then inc limbx,5
if keystate(208)=1 then dec limbx,5
if keystate(203)=1 then inc limby,1
if keystate(205)=1 then dec limby,1
sync
loop
This is whats happen when I try to rotate:
And this when I try to turn:
http://s29.postimg.org/8txmrrmt3/image.png
Thanks