RepellerForceField is a force field where all forces point away from a single point. The force strength changes with the inverse distance squared.
| 114 | // The force strength changes with the inverse distance squared. |
| 115 | // |
| 116 | type RepellerForceField struct { |
| 117 | position math32.Vector3 |
| 118 | mass float32 |
| 119 | } |
| 120 | |
| 121 | // NewRepellerForceField creates and returns a pointer to a new RepellerForceField. |
| 122 | func NewRepellerForceField(position *math32.Vector3, mass float32) *RepellerForceField { |
nothing calls this directly
no outgoing calls
no test coverage detected