Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Rotating a part around a part Axis?

Let's say we have 2 parts: A and B. Both parts have different position and rotation. What I'm trying to do is to rotate A around B Y axis. Using CFrame.Angles on A will rotate It around itself. Here's a visual representation: enter image description here

How do I rotate A like this?

3 comments

0

I think theres :ToWorldSpace() but i dont know how to use it

0

I've been trying using ToWorldSpace and the other functions, and I know what are these for, but I don't know how to implement them to create this code

0

I did not watch the video through but this may help: https://www.youtube.com/watch?v=IYZ7DS_E-VA

1 answer

I've had this nagging at me for so long. If you are rotating it using a script, I don't know, but if you are using it in studio, I would recommend having the F3X building tools plugin. You are easily able to rotate parts around. It can create it's very own axis in the middle of a couple parts you could be rotating. I hope this helps.

1 comment

0

Thanks, but I requiere rotating it via code

This discussion is preserved as it was. New answers, comments, and votes are closed.