I have made a helicopter model that gets fully welded and has a vehicleseat, but it does not work as it is a helicopter, not a car. I want this helicopter to use instances such as angular velocity/linear velocity, or if there are other methods that work using physics.
You can first add a LinearVelocity into your helicopter and set it to an attachment. Tweak the force values until you’re comfortable with the speed. You can modify the values of the LinearVelocity based on the throttle value and steer value of that seat.
It shouldn’t matter, just make sure you set up a PrimaryPart for the helicopter, add an attachment in that, and connect the LinearVelocity’s attachment to the attachment you added.
local function Check()
if VehicleSeat.Steer == -1 then
MainLinearVelocity.VectorVelocity = Vector3.new(MainLinearVelocity.VectorVelocity.X,MainLinearVelocity.VectorVelocity.Y,-MaxLinearVelocity)
elseif VehicleSeat.Steer == 1 then
MainLinearVelocity.VectorVelocity = Vector3.new(MainLinearVelocity.VectorVelocity.X,MainLinearVelocity.VectorVelocity.Y,MaxLinearVelocity)
elseif VehicleSeat.Steer == 0 then
MainLinearVelocity.VectorVelocity = Vector3.new(MainLinearVelocity.VectorVelocity.X,MainLinearVelocity.VectorVelocity.Y,0)
end
if VehicleSeat.Throttle == 1 then
MainLinearVelocity.VectorVelocity = Vector3.new(MainLinearVelocity.VectorVelocity.X,MaxLinearVelocity,MainLinearVelocity.VectorVelocity.Z)
elseif VehicleSeat.Throttle == 0 then
MainLinearVelocity.VectorVelocity = Vector3.new(MainLinearVelocity.VectorVelocity.X,0,MainLinearVelocity.VectorVelocity.Z)
elseif VehicleSeat.Throttle == -1 then
MainLinearVelocity.VectorVelocity = Vector3.new(MainLinearVelocity.VectorVelocity.X,-MaxLinearVelocity,MainLinearVelocity.VectorVelocity.Z)
end
end
check function is ran when throttle or steer change
main linear velocity is this
Do I change the attachments oreintation based on the steer/throttle, or would it be velocity then when I change this I make alignoreintation to the CFrame of attachment0?
You should only be setting the AlignOrientation’s CFrame, just try out some values and see how it works. The best way to figure out what you want is to test it.
I put the AlignOrientation mode to oneattachment, and now the helicopter is driveable, but can not rotate, but now that this is driveable, how would I make it rotate ? By rotate I mean rotate the body, since it can already steer