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

Struct ConstantForceField

experimental/physics/forcefield.go:18–20  ·  view source on GitHub ↗

ConstantForceField is a constant force field. It can be used to simulate surface gravity.

Source from the content-addressed store, hash-verified

16// It can be used to simulate surface gravity.
17//
18type ConstantForceField struct {
19 force math32.Vector3
20}
21
22// NewConstantForceField creates and returns a pointer to a new ConstantForceField.
23func NewConstantForceField(force *math32.Vector3) *ConstantForceField {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected