#CFrames

1 messages · Page 1 of 1 (latest)

cinder sierra
#

i was trying to work with CFrames how i normally would using orientation changes. but the rotation seems to be completley different. did CFrame get changed?

#

the code is supposed to make it so the camera tilts when walking to the side

west flume
#

CFrame didnt get changed

#

the rotation is relative to the camera

#

but humanoid.movedirection is in global coordinates

cinder sierra
#

i see, how should i go about fixing that

west flume
#

so i figured out how to get the movedirection in local space

#
character.HumanoidRootPart.CFrame:ToObjectSpace(CFrame.new(character.HumanoidRootPart.Position + h.MoveDirection)).Position
cinder sierra
#

sorry for the delayed response, thanks for the help!