Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What technique would you recommend to one in order to propel something?

Asked by 5 years ago

What is the best and/or correct way to propel something, like a bullet or a car?

I'm aware that one could use CFrame, and just loop an addition in the direction you want the object to go. You could also do a loop and change all the parts in the model's velocity. Or you could even use bodyForce's. However, I am unsure of the best one to use. I also think this would be a good question for everyone, not just me.

1 answer

Log in to vote
1
Answered by 5 years ago

Hey Stephen,

I would recommend using Body Forces. They are there for a reason and we should make full use of them. Plus, using CFrame to propel something forward excludes it from the normal physics affecting the object. If you want to move an object forward while respecting the physics that it has to deal with, then use Body Forces. Otherwise, if you are just wanting to play an animation of some sort then I suppose CFrame would be more beneficial to use.

I hope I proved to be of some help. Have a nice day/night.

Thanks,

Best regards,

KingLoneCat

0
Thank you greatly, plus body force's have a multitude of options. However, is this also the best "lag" resistant technique? I'm guessing it's mostly on the way I design the system. Stephenthefox 94 — 5y
0
If you're doing animations then use the animation plugin. I would reckon they know how to reduce lag with animations properly. If you're making a part that needs to be affected by physics(Like a ball or something) then use body forces, they shouldn't be lag inducing unless you do it to like many parts at once. Use streaming enabled to manage lag. KingLoneCat 2642 — 5y
Ad

Answer this question