Posted: 23rd Aug 2003 5:47
Limb zero of any primitive is the visible mesh data so dont think this will work with just limbs on your object, it covers the lot.

IT should be fine for one mesh imported models as well or multiple limbed puppies.


Woot!


+ Code Snippet
sync on : sync rate 60

set text font "arial"
set text size 14

make object cube 1,1
position object 1,-1,0,0
SET LIMB SMOOTHING 1, 0, 95

make object cube 2,1
position object 2,1,0,0
SET LIMB SMOOTHING 2, 0, 5


rem if you hide an object the bounds are hidden also
`hide object 1

position camera 0,0,-4
point camera 0,0,0

disable escapekey
while escapekey()=0
r# = wrapvalue(r# + 0.3)
for i = 1 to 2
rotate object i,r#,r#,r#
next i


if upkey()=1 then cf#=10
if downkey()=1 then cf#=-10

cx#=wrapvalue(cx#+mousemovey()*0.5)
cy#=wrapvalue(cy#+mousemovex()*0.5)

if cx#<=290 and cx#>180 then cx#=290
if cx#>=70 and cx#<=180 then cx#=70

acx#=curveangle(cx#,acx#,2.1)
acy#=curveangle(cy#,acy#,2.1)

rotate camera acx#,acy#,0

acf#=curvevalue(cf#,acf#,20)

move camera acf#

cf#=0


center text screen width()/2,1,"limb smoothing example"

sync
endwhile

      delete object 1
      delete object 2


end


Posted: 23rd Aug 2003 5:58
ignore the remarks it was from an earlier test on collision stuff
Posted: 28th Aug 2003 0:49
Pretty neat stuff .
Posted: 28th Aug 2003 4:01
Sweet dude
Posted: 2nd Sep 2003 12:44
Hey Indi,

Just wondering why you went through the whole "disable escape key" and "while escapekey()=0" commands? Is there a performance thing there? Just like being able to "clean up" at the end of the program on your own? Or is this a hold over from C++? Just wondering.
Posted: 2nd Sep 2003 12:57
its neater and expected from you to cleanup after yourself.

when you test a million snippets that dont cleanup memory starts to frag and weird things happen.

I use that so i dont create an infinite loop with a do /loop

Its easy to fall out of the loop into cleanup then.