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

Is it possible to rotate a CFrame from an anchor point? [Answered]

Asked by 3 years ago
Edited 3 years ago

When I rotate a CFrame using a script it rotates around its center point. I was wondering if it's possible to change the point where its rotating from. I am trying to make a butterfly wing however, it rotates from the center meaning that wing detaches itself from the butterfly's body. If there are any resources anyone could direct me to about this, I would be grateful.

0
The first can be used for CFrame operations and the second can be used for gradual rotation. User#30567 0 — 3y
0
Thank you very much MoralArsonism 47 — 3y
0
Please accept my answer User#30567 0 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

See https://developer.roblox.com/en-us/articles/Understanding-CFrame#relative-position/https://developer.roblox.com/en-us/api-reference/class/CylindricalConstraint.

The first can be used for CFrame operations and the second can be used for gradual rotation.

Ad

Answer this question