Currently I’m moving every bone by itself, but that causes this to happen:
https://cdn.upload.systems/uploads/QlUyXdLG.mp4
If I just move the top bone, this happens:
https://cdn.upload.systems/uploads/5ZWF70Qx.mp4
How do I make it rotate correctly?
I’m trying to get shapes like this:
1 Like
Bazzive
(Bazzive)
October 30, 2022, 4:15pm
2
I think you can do this by only moving and rotating the top and bottom bones no?
Just make sure you’re rotating them equally, but you can then move the bottom bone to make it have some life.
Bear23913
(BearBoi)
October 30, 2022, 4:31pm
3
You could maybe use Motor 6d? It may not work for what you want however, id suggest looking into it!
That doesnt work, because the shape doesnt stay if i do that.
Probably change up the CFrame rotation from object space to world space stuff using :ToObjectSpace, what is the current code?
Before we even get to the CFraming, I’m going to need sauce on this:
Have you done any benchmarking? With the preferable method I learnt now with os.clock()
Sample benchmarking code
Otherwise, yeah you got the formula correctly, but you haven’t applied ToObjectSpace correctly since you will need to inverse the parent CFrame, and instead you have inversed the goalCFrame instead so try this out I guess?
local goalCFrame = CFrame.new(chain.joints[i] + v/2, chain.joints[n]) -- The World CFra…
BTW, the result CFrame is different if you multiple CFrame1CFrame2 vs CFrame2 CFrame 1 so try experimenting with this.