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.