I’m currently working on an FPV drone game focused on acrobatic flying. Here is what I have so far:
I don’t have a drone irl btw so I’m just making the physics based off of other FPV sims.
Feel free to leave feedback, suggest features to add to the game, or suggest changes towards the physics!
EDIT: THE GAME TYPICALLY DOES NOT WORK, AND I AM NOT PLANNING TO FIX IT
This FPV acro drone looks INSANELY GOOD AND REALISTIC! Excellent job on recreating it in Roblox! This will be an insanely cool and great thing in a Roblox game, it will be very fun! When are you planning on finishing the game?
This system is amazing. Want an even better look to it? add some UI! A speed measurer to see how fast your going, a little red blinking dot in the corner of the screen to let the individual know that they are connected to their VR. Have a little battery Icon somewhere to show how much juice you got left. An angle measurement system to show what angle the drone is at.
Thanks! I don’t currently have a date planned to try and release it on, as I’m just making it as a fun project. It is currently out in a testing phase if you want to try it out: FPV Drone Sim (EARLY IN-DEV) - Roblox. I still need to adjust some stuff with the drone before I can start polishing the game and adding maps.
Hey, yeah, I’m not working on this currently, but I’d rather not share the system for a couple of reasons. Firstly, it is not very optimized and has multiple flaws, so it would probably be better to just entirely recreate it. Secondly, and the main reason, is just that I don’t typically give others my work unless I created it with that intention.
For rotations, I used an AlignOrientation constraint. For thrust, I used 2 VectorForce constraints. One of them was the main force for moving the drone, and the other one was for drag to prevent the drone from going too fast.
The rotation thing is quite simple, but here’s my code sample if you need it:
-- Variables:
-- alignOrientation: Your drone's AlignOrientation constraint
-- pitch, yaw, roll: Variables representing the user's current input
-- SENS: Variables representing the sensitivities of each axis
RunService.RenderStepped:Connect(function(deltaTime)
alignOrientation.CFrame *= CFrame.Angles(
math.rad(pitch * 100 * deltaTime * PITCH_SENS),
math.rad(yaw * 100 * deltaTime * YAW_SENS),
math.rad(roll * 100 * deltaTime * ROLL_SENS)
)
end)
Thrust would have a VectorForce, and you’d set the force to something like Vector3.new(0, thrust * SPEED, 0)
local velocity = dronePrimaryPart.AssemblyLinearVelocity
local speed = velocity.Magnitude
if speed >= 100 then -- Max speed
dragForce.Force = -velocity.Unit * (speed ^ 2)
end
I believe that’s all I did for thrust and rotations. Hope this helps