MCPcopy
hub / github.com/g3n/engine / ForceField

Interface ForceField

experimental/physics/forcefield.go:10–12  ·  view source on GitHub ↗

ForceField represents a force field. A force is defined for every point.

Source from the content-addressed store, hash-verified

8
9// ForceField represents a force field. A force is defined for every point.
10type ForceField interface {
11 ForceAt(pos *math32.Vector3) math32.Vector3
12}
13
14//
15// ConstantForceField is a constant force field.

Callers 1

internalStepMethod · 0.65

Implementers 3

ConstantForceFieldexperimental/physics/forcefield.go
AttractorForceFieldexperimental/physics/forcefield.go
RepellerForceFieldexperimental/physics/forcefield.go

Calls

no outgoing calls

Tested by

no test coverage detected