generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Rotating part around point.

Previous Thread :: Next Thread 
gerit99 is not online. gerit99
Joined: 21 Jul 2010
Total Posts: 521
08 May 2013 12:11 PM
How would I rotate an arm around a shoulder using a custom weld? (And one I only have to insert so others can just put in any rotation)
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
08 May 2013 12:20 PM
Use fluctuating functions, in this a case sine and cosine,

local Radius = 1
for i = 0, 2*math.pi, math.pi/60 do
local WeldPos = CFrame.new(Radius*math.sin(i), 0, Radius*math.cos(i))
end

Something along that line.
Report Abuse
gerit99 is not online. gerit99
Joined: 21 Jul 2010
Total Posts: 521
08 May 2013 12:31 PM
I should have explained it more I guess. I want to rotate an arm around a shoulder, with the rotation known (In this case, math.rad(75),0,0). I am not sure how case sine and cosine work, so I wouldn't be able to use that.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image