generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: The ball has a problem.

Previous Thread :: Next Thread 
Tynezz is not online. 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
epicbreaker is not online. epicbreaker
Joined: 23 Apr 2011
Total Posts: 2791
18 Mar 2015 05:06 PM
Try slowing down the ball.
Report Abuse
MM233 is not online. 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 is not online. 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
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
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 is not online. Tynezz
Joined: 28 Apr 2014
Total Posts: 4945
18 Mar 2015 05:13 PM
What if the ball is in the camera?
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
18 Mar 2015 05:14 PM
I'm not sure.
Report Abuse
Tynezz is not online. Tynezz
Joined: 28 Apr 2014
Total Posts: 4945
18 Mar 2015 05:15 PM
Do you have a solution..
Report Abuse
Tynezz is not online. Tynezz
Joined: 28 Apr 2014
Total Posts: 4945
18 Mar 2015 05:26 PM
bump
Report Abuse
epicbreaker is not online. epicbreaker
Joined: 23 Apr 2011
Total Posts: 2791
18 Mar 2015 05:29 PM
Try it yourself.
Report Abuse
Tynezz is not online. 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
epicbreaker is not online. epicbreaker
Joined: 23 Apr 2011
Total Posts: 2791
18 Mar 2015 05:30 PM
Turn the interpolate speed to 1, any difference?
Report Abuse
Tynezz is not online. 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 is not online. 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
epicbreaker is not online. epicbreaker
Joined: 23 Apr 2011
Total Posts: 2791
18 Mar 2015 05:53 PM
Ball.CFrame - Vector3.new(0,0,50)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image