GravityFactorConstraint

Currently it’s kinda difficult to make a rig that permanently is able to move leisurly while still being able to fly above the ground as roblox provides little to no features to accomodate for this kind of issue

for exemple right the now the most common thing to do is to pull out a vector force and set it’s force to the gravity multiplied by it’s mass but then why do we have to do all that hustle when we could have a constraint that allows for the player to determine how does the gravity affect each assembly by a factor. Wouldn’t that be nice ?

…Why? This is just VectorForce but with a pre-calculated force.

Why would you not want vector force with a precalculated force, this feature could also serve as a precursor for new features involving pathfinding and flying rigs ect…

No, no, why would you want that? a ‘GravityFactorConstraint’ is literally a ‘VectorForce’ but with pre-calculated force to counteract gravity.

Because a feature is a feature it’s always benefic ??? stop being low vibrational

A feature is always a feature, I never stated it wasn’t.

I am stating on why this should be implemented if its already solved by an existing constraint that even has more capabilities?

Because it’s still lowkey complicated and require some scripting, it also requires another force to be applied at the same time the other force is still applying, i would just kinda wish that there could be something that could just anhilate the gravity point blank because then when the “flying” part recieves a little bit of force from knocking along something else it starts to degenerate.

I’m really struggling with vectorforce ngl even though it looks easy

You answered your own reason for why this shouldn’t exist, there’s already a solution in a much broader constraint that can be used for other aspects as well as the gravity counteracting.

I just explained why this “solution” is unconvenient ???

If you’re so adament that my idea is useless at least help me

That does not matter, the problem is already solved by an arbitrary constraint, if we needed to add a constraint for every little physics situation that requires a couple lines of code, we’d have more constraints than players.

You have to consider; "Is this REQUIRED as an additional constraint? Have I researched other constraints to see if they solve the issue better?" et cetera.

But I am helping by stating there isn’t a need for another constraint when one - if not more - that solves it already exists.

since you spent idk how much time replying back to my posts to try and tell me that a gravity factor constraint would be useless can you please give me a tutorial on how to make my unanchored parts fly smoothly using the vector force and tell me what could make this go wrong with fixes step by step ?

please :3


Horrible code, but it does what you wanted.

const RunService = game:GetService("RunService")

RunService.PreSimulation:Connect(function(DeltaTime: number)
	script.Parent.Force = Vector3.new(0, script.Parent.Parent:GetMass() * workspace.Gravity, 0)
end)

Not knowing how to do something does not mean a new feature should be implemented.

…

and then you show me a video of said part shooting for the stars in the sky when you touch it… it’s like you’re half reading my posts.. bye.

…Because I touched it in a way that makes it go upwards??? If I hit in straight on with my body it’d go horizontal more than vertical, it’s physics, dude.
as seen by the video below where I moved the part 1 stud down.

If his solution wasn’t what you want, then what are you asking for? That part had zero net force except when it was pushed for a brief moment. Do you understand rigid body equilibrium and Newton’s laws of motion?

500 luabridge calls per frame :D

This is not the place to insult code, I specifically stated it was horrible but usable code, the point was to prove GravityFactorConstraint was entirely unrequired.

local Gravity = workspace.Gravity


VectorForce.Force = vector.create(0,Gravity*Root.AssemblyMass,0)

Your feature request is a bloatslop
Every “convenient” feature is bloat that ruins Roblox as a whole; this is a general-purpose engine.