|
| 20 Sep 2015 05:13 PM |
Im using a Scriptable CameraType that locks first person, but also made it configurable to use Interpolate, SetRoll, etc.
My problem is when the player turns their camera, the character wont rotate with the camera.
I already knew that this would happen but my solution of using BodyGyros is not good because I need instant rotation without being flung around. Does anyone have a solution to this?
#code return |
|
|
| Report Abuse |
|
|
|
| 20 Sep 2015 05:14 PM |
a) make your own character b) set torso cframe c) make bodygyro maxtorque really high |
|
|
| Report Abuse |
|
|
|
| 20 Sep 2015 05:15 PM |
C wont work because itll be buggy A wont work because I dont know that yet
B is what Im trying to do but I only need to set 1 axis, how would I do that
#code return |
|
|
| Report Abuse |
|
|
|
| 20 Sep 2015 05:15 PM |
Torso.CFrame = CFrame.new(cam.CoordinateFrame.p,cam.CoordinateFrame.lookVector) Like this??/ |
|
|
| Report Abuse |
|
|
|
| 20 Sep 2015 05:19 PM |
Morash that flung me out of the map
#code return |
|
|
| Report Abuse |
|
|
|
| 20 Sep 2015 05:22 PM |
lol Well you need to remove the y axis from that :D
local lv = game.Workspace.CurrentCamera.CoordinteFrame.lookVector local realthing = Vector3.new(lv,0,lv) torso.CFrame = CFrame.new(torso.CFrame.p,realthing) |
|
|
| Report Abuse |
|
|
|
| 20 Sep 2015 05:23 PM |
aaargh I meant***** Vector3.new(lv.X,0,lv.Z) |
|
|
| Report Abuse |
|
|
|
| 20 Sep 2015 05:25 PM |
humanoidRootPart.CFrame = CFrame.new(hrp.Position, hrp.Position + v3(camera.lv.x, 0, cam.lv.z))
btw i have 5,447 tix |
|
|
| Report Abuse |
|
|
|
| 20 Sep 2015 05:27 PM |
It works at first but breaks when I die
#code return |
|
|
| Report Abuse |
|
|
| |
|
|
| 20 Sep 2015 05:30 PM |
| @Dermon, Whats the difference between adding and not adding? Since rotation doesn't have nothing to do with position... |
|
|
| Report Abuse |
|
|
|
| 20 Sep 2015 05:31 PM |
lookvector is direction k
btw i have 5,447 tix |
|
|
| Report Abuse |
|
|
|
| 20 Sep 2015 05:32 PM |
whew saved!! "doesn't have nothing to do" :D |
|
|
| Report Abuse |
|
|