Tynezz
|
  |
| Joined: 28 Apr 2014 |
| Total Posts: 4945 |
|
|
| 18 Mar 2015 05:04 PM |
Info about Ball: -ball moves/rolls with bodyangularvelocity
Info about camera: -Interpolates to ball.CFrame every renderstepped
Problem: The camera is following the ball, but apperently the ball is either laggy or is in the "past". I'm not sure if it's my computer.
PLACE LINK http://www.roblox.com/2D-Dash-Physics-Test-place?id=227775193
Thanks in advance! |
|
|
| Report Abuse |
|
|
|
| 18 Mar 2015 05:06 PM |
| Try slowing down the ball. |
|
|
| Report Abuse |
|
|
MM233
|
  |
| Joined: 19 Jun 2008 |
| Total Posts: 925 |
|
|
| 18 Mar 2015 05:08 PM |
| Can you show us the code you use for changing the BodyAngularVelocity and the camera? |
|
|
| Report Abuse |
|
|
Tynezz
|
  |
| Joined: 28 Apr 2014 |
| Total Posts: 4945 |
|
|
| 18 Mar 2015 05:10 PM |
I changed the bodyangularvelocity manually. BodyAngualarVelocity's maxTorque is Vector3.new(inf,inf,inf) and it's av is Vector3.new(0,0,-15).
The camera script: local cam=game.Workspace.CurrentCamera local follow=game.Workspace.Character game:GetService("RunService").RenderStepped:connect(function() cam.CameraType="Scriptable" cam:Interpolate(follow.CFrame + Vector3.new(0,0,20), CFrame.new(follow.Position) * CFrame.Angles(0,0,20), .0000000000000000000000000000000000001) end) |
|
|
| Report Abuse |
|
|
|
| 18 Mar 2015 05:11 PM |
| It is laggy because the camera relies on data from the server. The part moves with data from the server, so it appears to be glitchy. |
|
|
| Report Abuse |
|
|
Tynezz
|
  |
| Joined: 28 Apr 2014 |
| Total Posts: 4945 |
|
|
| 18 Mar 2015 05:13 PM |
| What if the ball is in the camera? |
|
|
| Report Abuse |
|
|
| |
|
Tynezz
|
  |
| Joined: 28 Apr 2014 |
| Total Posts: 4945 |
|
| |
|
Tynezz
|
  |
| Joined: 28 Apr 2014 |
| Total Posts: 4945 |
|
| |
|
| |
|
Tynezz
|
  |
| Joined: 28 Apr 2014 |
| Total Posts: 4945 |
|
|
| 18 Mar 2015 05:30 PM |
| I did, I also lowered the av of the ball to -5. It's still "choppy" |
|
|
| Report Abuse |
|
|
|
| 18 Mar 2015 05:30 PM |
| Turn the interpolate speed to 1, any difference? |
|
|
| Report Abuse |
|
|
Tynezz
|
  |
| Joined: 28 Apr 2014 |
| Total Posts: 4945 |
|
|
| 18 Mar 2015 05:36 PM |
| Wow it works! I know a little hack to make it back to normal. |
|
|
| Report Abuse |
|
|
Tynezz
|
  |
| Joined: 28 Apr 2014 |
| Total Posts: 4945 |
|
|
| 18 Mar 2015 05:52 PM |
| How can I make the camera farther than the ball? |
|
|
| Report Abuse |
|
|
|
| 18 Mar 2015 05:53 PM |
| Ball.CFrame - Vector3.new(0,0,50) |
|
|
| Report Abuse |
|
|