Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how to use Bodyforces to Rotate relative to orientation?

Asked by
ZeroBits 142
9 years ago

I can't for the life of me figure out how to rotate relative to the object, rather than world, this is what I have, how could I change this to rotate relative to the fuselage block, rather than the world?

For this script, assume all variables are assigned.

local tf = ship.body.fuselage.turnForce
local frc = Vector3.new(0-(ship.stats.turnForce.Value),0,tf.angularvelocity.Z) * math.rad(360)
tf.angularvelocity = frc
0
obj.CFrame = obj.CFrame * CFrame.new() Goulstem 8144 — 9y
0
Goulstem, I know it's late, but CFrame and BodyVelocity are different. BV is smooth and has good collision while CF can be buggy and doesn't have physics LordTechet 53 — 6y

Answer this question