LinearDistanceForce

class LinearDistanceForce

Bases: LinearForce

Pure virtual class for sinks and sources

Inheritance diagram

Inheritance diagram of LinearDistanceForce

enum FalloffType
enumerator FT_ONE_OVER_R = 0
enumerator FT_ONE_OVER_R_SQUARED = 1
enumerator FT_ONE_OVER_R_CUBED = 2
static TypeHandle get_class_type(void)
FalloffType get_falloff_type(void) const

falloff_type query

LPoint3 get_force_center(void) const

force_center 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_force_center(LPoint3 const &p)

set the force center

void set_radius(PN_stdfloat r)

set the radius