Data Realms Fan Forums
http://45.55.195.193/

Rotating Joints
http://45.55.195.193/viewtopic.php?f=73&t=16003
Page 1 of 1

Author:  Mind [ Sun Jul 26, 2009 2:46 am ]
Post subject:  Rotating Joints

Is there any way to make rotating joints in CC with Lua? I'm trying to make something that does this:

Image

Just rotate up to a certain point, then rotate the other way. Just curious if something like this is possible with rotangle or anything.

Author:  mail2345 [ Sun Jul 26, 2009 2:52 am ]
Post subject:  Re: Rotating Joints

Code:
attachable.ParentOffset = Vector(attachable.ParentOffset.Magnitude * math.cos(angle) , attachable.ParentOffset.Magnitude * -math.sin(angle))

Remeber to cast the attachable to an attachable before doing this.
And the old angle is attachable.ParentOffset.AbsRadAngle

Author:  Mind [ Sun Jul 26, 2009 3:00 am ]
Post subject:  Re: Rotating Joints

Um. Yeah I wish that I understood how to do that. I don't really know how to cast an MORay that well, let alone run lua on attachables.... :oops:

Author:  mail2345 [ Sun Jul 26, 2009 3:16 am ]
Post subject:  Re: Rotating Joints

viewtopic.php?f=73&t=15359

By cast I mean:
Code:
attachable = ToAttachable(x)

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/