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: Calculate speed of car?

Previous Thread :: Next Thread 
WolfgangVonPrinz is not online. WolfgangVonPrinz
Joined: 24 Oct 2013
Total Posts: 4656
14 Mar 2016 02:23 PM
So I'm going to do this using RenderStepped and taking the position every 1/60 of a second, then find the speed that way. Is there a better way, and is it too heavy to use RenderStepped? Should I use HeartBeat instead?


Report Abuse
Locard is not online. Locard
Joined: 13 Apr 2014
Total Posts: 3516
14 Mar 2016 02:27 PM
It depends on how often you need to use it. Just keep in mind that RenderStepped isn't always 1/60th of a second.

You can always take the average of every 10 frames and calculate it that way.
Report Abuse
ray_revenge is not online. ray_revenge
Joined: 18 Feb 2011
Total Posts: 453
14 Mar 2016 02:31 PM
part.Velocity.magnitude???


Recommended username: UncoveredRay_revenge


Report Abuse
WolfgangVonPrinz is not online. WolfgangVonPrinz
Joined: 24 Oct 2013
Total Posts: 4656
14 Mar 2016 02:32 PM
Using RenderStepped makes a small script of about 20 lines have an activity of 21% That's probably a bad shout




Report Abuse
WolfgangVonPrinz is not online. WolfgangVonPrinz
Joined: 24 Oct 2013
Total Posts: 4656
14 Mar 2016 02:34 PM
@Ray,

I'm an idiot. Thank you :P


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