Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How would I go about changing the BodyForce of an object to go in the direction of a CFrame?

I'm making a plane and I already have the BodyGyro aspect working with CFrame (mouse.hit is where I'm getting the CFrame). I don't want a line of code just general guidance

1 comment

0

If you mean the "forward" direction, that would just be the CFrame's lookVector. You can apply a force in that direction multiplied by the magnitude value you want the magnitude of the Force to be. Although BodyThrust will also work but in the part's space so you can just set the Z component to -magnitude.

1 answer

I dont use BodyForce, but wouldn't just putting it at Vector3.new(0,0,-100) --or something like that enough? Im not sure but if it doesn't work like that just do CFrame.new(plane.Position,mouse.Hit.p).lookVector*100

This discussion is preserved as it was. New answers, comments, and votes are closed.