Cuneyt Ozdas Forum
Cuneyt Ozdas Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 English - General
 Software Support
 Radius problem with rotating ball MAXscript
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Paul
Starting Member

2 Posts

Posted - 09/01/2004 :  17:15:34  Show Profile
Hi,

I am trying to produce a rolling object along the lines of the rotating ball project. The problem I have is that my orb is made up of two composite parts and grouped. This creates a problem in that the radius value is lost and bombs the script as soon as it call the radius value. Is there any way round this?

Best regards

Paul

Admin
Forum Admin

Turkey
649 Posts

Posted - 10/01/2004 :  12:47:50  Show Profile  Visit Admin's Homepage
Hi,
in this case if the object has a certain radius (I hope it's roudn in shape ) you can do this

remove the lines
r0 = at time t0 obj.radius  -- previous radius
r1 = at time t1 obj.radius  -- current radius

and then change the line
angle = 360*len/((r0+r1)*pi) -- rotation amount (in degs)

to
angle = 360*len/(X*pi) -- rotation amount (in degs)

where X is the diameter (2 times the raidus) of your object.

/Cuneyt
Go to Top of Page

Paul
Starting Member

2 Posts

Posted - 12/01/2004 :  12:12:34  Show Profile
Superb. This has fixed my problem. Many thanks. I was really starting to dispair.

Best regards

Paul
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
Cuneyt Ozdas Forum © 2000 - 2003 Cuneyt Ozdas Go To Top Of Page
This page was generated in 0.06 seconds. Snitz Forums 2000