I’m looking for someone who has experience with hovercar physics and can make a very stable hovercar
This is probably a pretty short term job, I don’t expect it to take more than 5 hours, but if things work out nicely I will want to work with you in the future (a direct future work could be to actually make the car drive-able)
I’ve spent too long attempting this, and I haven’t gotten anything to work very nicely
This is what I’ve gotten so far, it’s a little glitchy as you can see at the end
This is the code I used to create that
local craft=script.Parent
craft.Anchored=true
wait()
craft.Anchored=false
local mass=craft:GetMass()
local center=craft.center
local lift=center.lift
local ink=_G.ink.black({workspace.ruins,workspace.debris,},function(hit)
return hit.Transparency<.95 or hit.CanCollide
end)
local height=3
local k=2000
local exp=1
local d=20--velocity damper
local dspread=5
local dropoff=height/(1-(workspace.Gravity/k)^(1/exp))
local yawtorque=craft.center.yaw
_G.stepped:Connect(function(dt)
local cf=craft.CFrame
local hit,p,norm,mat=_G.spatial.cast(craft.Position,(cf-cf.p)*Vector3.new(0,-2048,0),ink,true)
local dist=(p-cf.p).magnitude
local vel=craft.Velocity
do
local ori=craft.Orientation*math.rad(1)
local pitch,yaw,roll=ori.X,ori.Y,ori.Z
if norm then
pitch=pitch-math.acos(Vector3.new(0,1,0):Dot(norm))
end
yawtorque.Torque=(-30*craft.RotVelocity+math.deg(1)*Vector3.new(-2*pitch,4*roll,-2*roll))*mass
craft.center.drag.Force=vel.magnitude==0 and vel or -3*(vel-cf.upVector*vel:Dot(cf.upVector))*mass
end
local s=dist>dropoff and 0 or (dropoff-dist)/dropoff
s=s^exp
local f=s*k-math.exp(-(dist-height)^2/dspread)*d*vel:Dot(cf.upVector)
f=math.clamp(f,-.5e3,.5e3)
lift.Force=Vector3.new(0,f,0)*mass
end)
Additionally to creating the cart, I’d like it if you could help me understand your code (you can charge your hours explaining)
I’ve completed AP Physics C Mechanics and AP Calculus BC so I do not think it will be too hopeless for you to explain
If you believe you can complete this, please add me on discord Acreol#0001
I will pay you even if you do not successfully do this as it is a per hour job, but both of us reserve the right to end the work at any moment and the payment will be rounded up to the nearest 15 minute increment
Thanks for reading this, I look forward to working with you