I want to build a plane and I'm using BodyAngularVelocity for rotation. The block i'm using it on can move if separated from the craft REALLY slowly but competely unable to rotate the full craft. I the P is currently around 1000000 and the maxtorque too. can you tell me the possible causes?
function moveup(input,gameProcessed)
if input.UserInputType == Enum.UserInputType.Keyboard then
print(input.KeyCode)
if input.KeyCode == Enum.KeyCode.W then
print("button pressed")
local rota = Instance.new("BodyAngularVelocity", thruster)
print(rota)
rota.AngularVelocity = thruster.CFrame:vectorToWorldSpace(Vector3.new(1000,0,0) * math.rad(120))
rota.P = turnpower
rota.Name = "uprota"
rota.MaxTorque = maxpowah
elseif input.KeyCode == Enum.KeyCode.S then
print("button pressed")
local rota = Instance.new("BodyAngularVelocity", thruster)
print(rota)
rota.AngularVelocity = thruster.CFrame:vectorToWorldSpace(Vector3.new(-1000,0,0) * math.rad(120))
rota.P = turnpower
rota.Name = "downrota"
rota.MaxTorque = maxpowah
elseif input.KeyCode == Enum.KeyCode.D then
print("button pressed")
local rota = Instance.new("BodyAngularVelocity", thruster)
print(rota)
rota.AngularVelocity = thruster.CFrame:vectorToWorldSpace(Vector3.new(0,-1000,0) * math.rad(120))
rota.P = turnpower
rota.Name = "rightrota"
rota.MaxTorque = maxpowah
elseif input.KeyCode == Enum.KeyCode.A then
print("button pressed")
local rota = Instance.new("BodyAngularVelocity", thruster)
print(rota)
rota.AngularVelocity = thruster.CFrame:vectorToWorldSpace(Vector3.new(0,1000,0) * math.rad(120))
rota.P = turnpower
rota.Name = "leftrota"
rota.MaxTorque = maxpowah
end
end
