Rotating Grabbed Object Depending on CurrentCamera Orientation

Simmilar to Lumber Tycoon 2, when grabbing an object and moving the camera around, the held item (log) rotates with the camera to always show the side the object was grabbed from:

This is replicant in my game, which moves with the mouse but not the camera:

What would I need to change to achieve this effectively?

All Movement is relative to “goalPart”, which holds the Attachment1 for both the AlignPosition & AlignOrientation, which are located in the purple ball along with Attachment0

local cf = CFrame.new(player.Character.Head.Position, mouse.Hit.Position)
goalPart.Position = (cf + (cf.LookVector * 10)).Position
2 Likes

Roblox added drag detectors, they work the same, you need to edit them a bit and you should be fine

Yeah, but I’d prefer to do it without them.

found solution, my error on my end. Found out it had something to do with the grabbers generation.

1 Like

Understandable, although you should consider them as newer and better solution, see they are coded in C++ langugae, soo it’s more efficient and ect, ik they are in beta, but you should wait until their release, good luck anyways!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.