Hello everyone.
I made a car and I tied wheels to suspension bricks with HingeConstraints
, and suspension bricks are tied to car body with PrismaticConstraints
and SpringConstraints
. After that I set ActuatorType
to Motor
, MotorMaxTorque
to 2000 and MotorMaxAcceleration
to 2000 too. As you see below
script.Parent.ActuatorType = Enum.ActuatorType.Motor script.Parent.MotorMaxTorque = 2000 script.Parent.MotorMaxAcceleration = 2000
After that I made wheels turn by setting AngularVelocity
to 300. Wheels are turning, but that is not enough to make the car move front or back. When I set any of these values higher to make car more powerful to move, wheels just get crazy. I also tried Velocity to move car's body but car can't even climb a slope with 10 degree. What should I do?
Note: No, I won't use DriverSeat object.
You should really use DriverSeat. Because it comes with it's own handy properites. If you don't want to use the driver seat object because of the gui, you can always change it in the player's core scripts.
[EDIT]
As you don't want to use a vehicle seat, you can just use a normal seat, and use user input service.
Whenever they input a key for let's say 'W' for forward we want the car to move forward. Make sure that everything is welded to the main part called Chasis. Then add velocity to the chasis and it should work.