Raycasting car vs Roblox SpringConstraint Physic car (which one is less laggy ?)

  1. What do you want to achieve?

Hello, between 30 cars that work with Raycasting + BodyVelocity + BodyAngularVelocity and 30 cars that work with Roblox physics, SpringConstraint and CylindricalConstraint which one will cause the more lag in game ? I’m implementing vehicles in my game and I’m looking for this information so that I don’t get it wrong. Thanks for your help

Solution:

Raycasting is much more efficient as it doesn’t rely on any of the physics engines, but rather a simple raycast from the bottom of the car to the ground.

Even if the raycast from the bottom of the car touches the ground, it doesn’t mean it’s actually touching the ground.

I doubt you’ll be able to get a very realistic simulation out of raycasting, but if you just want something that moves along the ground, then it can be a good way to go

Original Poster’s Comments:

I think I will use a physic car but with a raycast and BodyForce + BodyAngularVelocity

Source: https://devforum.roblox.com/t/raycasting-car-vs-roblox-springconstraint-physic-car-which-one-is-less-laggy/816069

How to make a car like my game ?

What do you want to achieve?

Ok so I have been trying to make a car like in my game but I cant get what I want.

I tried doing BodyForce, BodyVelocity, BodyAngularVelocity, and Raycasting, but I can’t get what I want.

Solution:

Use BodyForce, BodyVelocity, and Raycasting together.

Raycasting is needed to check if the car is actually on the ground.

BodyForce, BodyVelocity are needed to make the car go forward and backward.

I’m not sure about the BodyAngularVelocity, but you might need that as well.

Original Poster’s Comments:

Oh sorry for being a noob but can you explain what I need to do?

I tried raycasting, BodyForce and BodyVelocity together but it didn’t work.

Source: https://devforum.roblox.com/t/how-to-make-a-car-like-my-game/816070

Best way to make a car in Roblox?

What do you want to achieve?

I am someone who wants to make a car in Roblox, but I don’t know how to make a car.

I heard that