Unexpected behavior using vector forces on an assembly

How it happened :

I created a VectorForce object in the root part of a plane I’m designing, with ApplyAtCenterOfMass toggled on.
Then, I implemented a script which changes the value of the VectorForce every frame (using the Heartbeat event, on the server side) to this : VectorForce.Force = Vector3.yAxis * planeMass * workspace.gravity, where planeMass is the sum of every plane’s parts mass.

I made this force to cancel the effect of gravity on the plane assembly.

Everything worked fine, until at some point I tried changing slightly the VectorForce’s force value to 0, 100, 0 (normally the value is around 0, 16, 0. The whole plane started glitching out, and after some time some parts started destroying themeselves (see in the video below).

Other things to know :

  • The plane is model containing multiple BaseParts (which density is minimal (0.0001), so mass ~ 0)
  • Parts are linked with each other by either WeldConstraints, HingeConstraints, PrismaticConstraints or Motor6Ds
  • There is a main part to which every part is directly/indirectly linked
  • The plane’s main part is linked to a prismatic constraint, forcing the part to move only on the Y axis.
  • The plane’s main part is anchored by default, that’s why I unanchor it in the video

Media :

System information :

  • OS : Windows 11 Pro
  • Processor : Intel Core i5 12400F / 4 GHz
  • RAM : 16Gb
  • GPU : NVIDIA GeForce RTX 4060

Expected behavior

I expect the plane to stay connected while being influenced by VectorForce.

1 Like

Hello,
Can you please provide a reproduction file and we can take a look at what’s causing this. From your description it’s possible that there is a mass ratio issue, but we need to see the whole mechanism to be sure. Thanks.

1 Like

Here’s a reproduction file : Download Plane glitch.rbxl | LimeWire.
Scripts that may cause a problem are Physics and Mechanics, and they’re stored in ReplicatedStorage > Shared > Plane. The majority of the code in the file is compiled code, the source code is written is TypeScript using roblox-ts. Tell me you want me to provide the source code, and i’ll send the files.

1 Like

Thanks for the repro file. I’m pretty sure i found your problem. The meshpart FuselageDown is massless, which make the mass of the assembly it’s welded to very small, high mass ratios like that won’t work with the physics solver. If you let FuselageDown be the governing mass of the assembly the jitter goes away. I’m going to close the issue for now. Thanks again.