class LinearDistanceForce

Bases: LinearForce

Pure virtual class for sinks and sources

Inheritance diagram

Inheritance diagram of LinearDistanceForce

setRadius(r: float) → None

set the radius

setFalloffType(ft: FalloffType) → None

falloff_type encapsulating wrap

setForceCenter(p: LPoint3) → None

set the force center

getRadius() → float

radius query

getFalloffType() → FalloffType

falloff_type query

Return type


getForceCenter() → LPoint3

force_center query

Return type


getScalarTerm() → float

calculate the term based on falloff

static getClassType() → TypeHandle
Return type


enum FalloffType
enumerator FT_ONE_OVER_R = 0
enumerator FT_ONE_OVER_R_SQUARED = 1
enumerator FT_ONE_OVER_R_CUBED = 2