Stephex_s
(Stephex)
February 2, 2022, 7:52am
1
I am making a ball that follows your camera’s movement, however the ball currently comes at the camera, and I want to to go the other way.
local cameraangle = (workspace.CurrentCamera.CFrame.Position)
local test = CFrame.new(cameraangle, chr.Torso.CFrame.Position)
How would I invert the CFrame? I tried inverse but it didn’t come out as I was looking for.
changeno
(changeno)
February 2, 2022, 8:21am
2
Multiplying one of the CFrame axis with pi allows you to do that.
local test = cameraangle * CFrame.Angles(0, math.pi, 0)
Stephex_s
(Stephex)
February 2, 2022, 8:39am
3
It has not fixed my issue. It is still not inverted…
Stephex_s
(Stephex)
February 2, 2022, 8:43am
4
Figured it out, and kept using math.pi, so you did help. Thank you!
Stephex_s
(Stephex)
February 2, 2022, 9:46am
5
You still on the forums? since the ball has a player standing on it, I want to player to also follow the camera’s positioning, however It is not working.
changeno
(changeno)
February 2, 2022, 11:58am
6
Can you explain with more detail please?
Stephex_s
(Stephex)
February 2, 2022, 12:21pm
7
I keep forgetting to reply but all I had to do was repeat the same line with the ball but make the line
direction = (the.LookVector * -1) * speed
--// to
local thefinale = (testing.LookVector * -15)