Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Rotating a part around a part Axis?

Asked by 5 years ago
Edited 5 years ago

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?

0
I think theres :ToWorldSpace() but i dont know how to use it Fad99 286 — 5y
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 masterjosue1998 116 — 5y
0
I did not watch the video through but this may help: https://www.youtube.com/watch?v=IYZ7DS_E-VA Fad99 286 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

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.

0
Thanks, but I requiere rotating it via code masterjosue1998 116 — 5y
Ad

Answer this question