LinearDistanceForce

from panda3d.physics import LinearDistanceForce
class LinearDistanceForce

Bases:

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 get_class_type() panda3d.core.TypeHandle
get_falloff_type() FalloffType

falloff_type query

get_force_center() panda3d.core.LPoint3

force_center query

get_radius() float

radius query

get_scalar_term() float

calculate the term based on falloff

set_falloff_type(ft: FalloffType)

falloff_type encapsulating wrap

set_force_center(p: panda3d.core.LPoint3)

set the force center

set_radius(r: float)

set the radius