You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear!
I want to prevent the rotation of the vehicle or at least have control over the local Z axis
What is the issue? Include screenshots/videos if possible!
3rd the local Z axis seems to uncontrollably rotate itself
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
Manually setting the Z axis on the AlignOrientation
--on render step
local lv = CFrame.lookAt(cam.CFrame.Position,mouse.Hit.Position)
ori.PrimaryAxis = lv.LookVector*100
1 Like
Scottifly
(Scottifly)
November 12, 2022, 7:05am
#2
Is it because your Mouse.Hit.Position doesn’t work when it has nothing to hit (the sky)?
I’m not much help with the subject, but I’ve seen other posts where people ask similar questions.
Try Searching ‘make a plane aim to the mouse position’ or ‘align player to mouse’ and you may find posts that help you out.
1 Like
Nyonic
(Nyonic)
November 12, 2022, 7:23am
#3
try mode OneAttachement on the alightorientation with just an attachement center of part… then just set the AlightOrientation.CFrame =
It is in one attachment. CFrame didn’t really do anything.
Nyonic
(Nyonic)
November 14, 2022, 3:41am
#5
do you have anything else controlling rotation or position of the part?
(assumingly) other than physics, no
system
(system)
Closed
April 11, 2024, 2:09am
#7
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.