redfart
|
  |
| Joined: 17 Oct 2008 |
| Total Posts: 1021 |
|
|
| 04 Jun 2013 03:25 PM |
offset=(Torso.Position.y-mouse.Hit.p.y)/80 mag=(Torso.Position-mouse.Hit.p).magnitude/100 offset=offset/mag neck=Torso.Neck neck.C0=necko*CFrame.fromEulerAnglesXYZ(offset,0,0)
Basically what this is, is setting the C-Frame of the neck to point where the mouse is aiming. But the problem is, is it isn't perfectly accurate. Like if your zoomed in, and you point up, the head's angle won't stay constant. It'll only move a little. Or if you change the division of the 100 and 80 it'll be really sensitive, or not at all, ect.
Anybody know an equation that WOULD make it stay constant? |
|
|
| Report Abuse |
|
|
Flash77
|
  |
| Joined: 14 Jun 2008 |
| Total Posts: 550 |
|
|
| 04 Jun 2013 03:32 PM |
| Try using a parabola, that is if the problem is the head moves too much when object you are looking at is to far/close with the opposite when the opposite conditions. |
|
|
| Report Abuse |
|
|
redfart
|
  |
| Joined: 17 Oct 2008 |
| Total Posts: 1021 |
|
|
| 04 Jun 2013 03:37 PM |
That's exactly my problem
How would I use a parabola? Wouldn't that just repeat the problem? |
|
|
| Report Abuse |
|
|
Wowgnomes
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
|
| 04 Jun 2013 03:38 PM |
| The problem is with the roblox engine, mouse movements are not accurate enough. |
|
|
| Report Abuse |
|
|
redfart
|
  |
| Joined: 17 Oct 2008 |
| Total Posts: 1021 |
|
|
| 04 Jun 2013 03:40 PM |
But it's done perfectly at "Battlefield"
www.roblox.com/--place?id=114127058 |
|
|
| Report Abuse |
|
|
galvinio
|
  |
| Joined: 30 Jun 2011 |
| Total Posts: 222 |
|
|
| 04 Jun 2013 04:36 PM |
| That's cause DeadZoneZack is a genius... :l |
|
|
| Report Abuse |
|
|