For my chemistry extra credit project, I am working on creating a 3D simulation that focuses on the atomic structure of compounds. My goal is to develop a visual representation of elements surrounding a central atom, such as fluorine surrounding nitrogen in NF3.
I am experimenting with applying forces to the surrounding elements to position them correctly in 3D space, mimicking the atomic structure of the specified compound. Currently, my simulator successfully builds the compound, but the surrounding elements move in a limp manner in space. I am seeking guidance on how to apply a repelling force to these elements that would impact the other elements. I have attempted using methods like .ApplyForce and .ApplyImpulse, but they do not seem to be effective. Perhaps I need to apply a method to the other objects to make them responsive to this force?
Any assistance or advice would be greatly appreciated. Thank you in advance!