So since the bodymovers have been depricated now, I want to use constaints to completely shut off the phisics for the Y axis, but if I use align position the X and Z axis get’s aligined as well, and that’s not what I want.
I DO NOT WANT TO USE BODY MOVERS AND I DON’T WANT TO ANCHOR THE PART
I hope that is clear.
If you know what to do, please let me know thank you!
1 Like
If, by bodymovers you mean bodyforce, bodyvelocity, bodygyro, etc, then you should use VectorForce. Its basically a replacement for the now-depreciated bodyforce. Just set the force to be workspace gravity * part mass and set the apply at center of mass to true.
https://developer.roblox.com/en-us/api-reference/class/VectorForce
1 Like
so there’s no replacment for body velocity?
Not that I know of but i could be wrong.
Also scrap the vectorforce use AlignPosition. Its much easier and basically tries to apply a force to put the part at the position. AlignPosition
did you read my post? I can’t use align position
So your trying to align Y position right, set the goal position to a position with the correct Y position, and don’t care about X and Z. Then, set MaxForce of X and Z to 0, which will make the game unable to apply force on X and Z
but there is no axis to MaxForce? MaxForce is not vector3 it a number
oh shoot they changed it? In my memory it was Vector3. Lemme look at other options
I cant find any constraints that do the job. So either vector force would have to do, or you can have a script to manually set the position every frame:
local RS = game:GetService("RunService")
local Part = script.Parent
RS.Heartbeat:Connect(function()
Part.Position = Vector3.new(Part.Position.X,10,Part.Position.Z)
end)
1 Like