An issue I am having with the BodyVelocity is that when I change the angle of the part with AngularVelocity, the BodyVelocity remains to move up with the workspace’s axis, what I want is the BodyVelocity to move up with the part’s axis.
Help would be greatly needed.
1 Like
S0MBRX
(S0MBRX)
January 20, 2021, 11:56am
#2
try using a vector force on the part to apply force in relation to the parts orientation
heII_ish
(heII_ish)
January 20, 2021, 11:58am
#3
-- this will make it fly up with a force relative to the part
BodyVelocity.Velocity = Part.CFrame:Inverse():VectorToObjectSpace(Vector3.new(0, 1, 0))
1 Like
Well that should work but here is an alternative alternative which should achieves the same thing:
-- this will make it fly up with a force relative to the part
BodyVelocity.Velocity = Part.CFrame.UpVector
Or you can use an attachment worldCFrame, UpVector to control it further if the part orientated weirdly.
Airzy_Az
(air)
January 21, 2021, 6:25am
#5
you could just use body thrust or vector force instead of looping to get UpVector
How can I make it move with body thrust without any forces acting against it, with BodyVelocity it appeared anchored and that no forces against it?
Airzy_Az
(air)
January 21, 2021, 6:29am
#7
oh sorry I misunderstood, I did not realize what u were using body velocity