LinearDistanceForce
-
class LinearDistanceForce
Bases:
LinearForce
Pure virtual class for sinks and sources
Inheritance diagram
-
enum FalloffType
-
enumerator FT_ONE_OVER_R = 0
-
enumerator FT_ONE_OVER_R_SQUARED = 1
-
enumerator FT_ONE_OVER_R_CUBED = 2
-
enumerator FT_ONE_OVER_R = 0
-
static TypeHandle get_class_type(void)
-
FalloffType get_falloff_type(void) const
falloff_type query
-
PN_stdfloat get_radius(void) const
radius query
-
PN_stdfloat get_scalar_term(void) const
calculate the term based on falloff
-
void set_falloff_type(LinearDistanceForce::FalloffType ft)
falloff_type encapsulating wrap
-
void set_radius(PN_stdfloat r)
set the radius
-
enum FalloffType