Vehicle Control That Supports Mouse Steering (3 axis)

As a Roblox developer, it is currently impossible to steer vehicles via the mouse.
In Roblox you can steer your character via the mouse (by right clicking). But with vehicles, you can only steer using WASD, and not the mouse.

If Roblox is able to address your issue, how would it improve your game and/or your development experience?
The current Roblox vehicle script only supports throttle and left/right steering by WASD keys. But this is not very useful for some types of vehicles. Vehicles such as space ships, airplanes, submarines, etc need to be able to move along all three axes. An airplane, for example needs to be able to go up/down, left/right, and roll left/right. This is in addition to needing a throttle control.

This is easily solved by allowing the vehicle to be steered with the mouse. The user can drag the mouse, and the vehicle and camera will steer toward the mouse position.

Why This Is Important
I was hoping to make a game with an air vehicle, but gave up on it, since the vehicle controls are currently so limited. There was no satisfying way to control an air vehicle that felt fun and natural without mouse steering.

Just about all modern games have the ability to steer vehicles via the mouse. Such an addition to Roblox would enable much more sophisticated vehicle games.

1 Like

Vehicles are implemented by the specific game’s scripter on roblox. Roblox does not have a concept of vehicles except for VehicleSeats which some developers use to collect input (or that hinge surface behavior).

Are you asking for the ability to make the mouse affect the steer property?

3 Likes

It is hard to understand what your request is exactly. Are you talking about the camera controls and limitations on the default Roblox vehicles?

1 Like

Basically I want to be able to steer the vehicle using the mouse, exactly how it is done in steering a character that is running.

Sounds like camera aligned movement. No mouse involved. You could program a vehicle to act that way yourself. What do you suggest Roblox do? Maybe it could replicate the camera orientation from the client to the server via some vehicleSeat properties, but it doesn’t sound good for anyone.

Can you further elaborate on “the vehicle”? Are you talking about roblox’s default hinge vehicleseat behavior? Airplanes don’t use this behavior so I’m not sure how roblox could implement this.

I also doubt many/any of the games you’re complaining about with vehicles are using vehicleseats (they program vehicles themselves) so I don’t know how roblox would fix this.

Airplane controls are pretty game dependant, so it seems unlikely that Roblox will implement a default version like it has done with cars. There are a few good plane free models out there that you could use as a base for creating your own though, such as https://www.roblox.com/library/644757919/Biplane

3 Likes

Yes, I was trying to use a VehicleSeat. My goal was to create an airplane, that when you use the RMB the airplane would steer, just like you steer the character. But since the VehicleSeat did not have this built in, the only way I could think of getting that behavior is by tracking the camera, and adjusting the vehicle CFrame to point in the direction of the camera.

Thank you for the link. I will definitely check out that code!