daireb
|
  |
| Joined: 16 Nov 2012 |
| Total Posts: 726 |
|
|
| 06 Apr 2016 10:36 AM |
Is there any way to make animations play properly in first person? I need you to be able to see your body and for the camera to follow the head's position. I've tried loads, and I have a semi-working design, but it's really clumsy and I want to see if there's any better way to do it.
To clarify: - I can script it myself, I just need advice on what technique to use - You need to be able to see your own body - The camera has to follow the position of the head (eg: if my character bends down, I want the camera following that motion, and so getting lower) - You need to be able to look around in a way that resembles what roblox currently has in FP
Any ideas??? |
|
|
| Report Abuse |
|
|
|
| 06 Apr 2016 11:20 AM |
When the character spawns clone all body parts and weld them to their original body parts? If you want clothes to show, clone them into a new model (this model cant be a child of the character) and insert clothes and humanoid.
In respects to camera position, I believe the camera does follow the head's position. If you wanted to make it follow the heads rotation you'd lose the ability to rotate like in normal 1st person ROBLOX. If the camera doesnt follow position, just do
camera.CoordinateFrame = CFrame.new(head.Position) * camera.Rotation
or something like that I can't really work it out now... |
|
|
| Report Abuse |
|
|
daireb
|
  |
| Joined: 16 Nov 2012 |
| Total Posts: 726 |
|
|
| 06 Apr 2016 12:26 PM |
I've tried that, although I used localparts to render the character (to stop Z-fighting for other players), and in regard to camera movement, it is locked to HumanoidRootPart, which can't be easily manipulated without ruining pretty much every feature of a humanoid. My current method simulates normal roblox first person, using RenderStepped to update the CFrame of the camera every frame based on mouse movement. It's not a very elegant solution, and raises even more issues, which is why I'd like any other ideas as to what I could do :P |
|
|
| Report Abuse |
|
|
daireb
|
  |
| Joined: 16 Nov 2012 |
| Total Posts: 726 |
|
| |
|
daireb
|
  |
| Joined: 16 Nov 2012 |
| Total Posts: 726 |
|
| |
|
daireb
|
  |
| Joined: 16 Nov 2012 |
| Total Posts: 726 |
|
| |
|
|
| 07 Apr 2016 12:03 PM |
| Yep, use this script: https://www.roblox.com/For-daireb-item?id=395004018 |
|
|
| Report Abuse |
|
|
daireb
|
  |
| Joined: 16 Nov 2012 |
| Total Posts: 726 |
|
|
| 07 Apr 2016 12:48 PM |
While that script is cool, it doesn't do exactly what I want ALTHOUGH it does contain the kind of function I want to use, and I can reverse engineer the stuff I need. THANK YOU! |
|
|
| Report Abuse |
|
|