Panda3D

- Main Page
- Packages
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Types | Public Member Functions | Static Public Member Functions

# LinearDistanceForce Class Reference

Pure virtual class for sinks and sources. More...

Inheritance diagram for LinearDistanceForce:

List of all members.

## Public Types
enum | FalloffType { FTONEOVERR = 0, FTONEOVERRSQUARED = 1, FTONEOVERRCUBED = 2 }
## Public Member Functions
FalloffType | getFalloffType ()
| falloff_type query
Point3 | getForceCenter ()
| force_center query
float | getRadius ()
| radius query
float | getScalarTerm ()
| calculate the term based on falloff
| setFalloffType (FalloffType ft)
| falloff_type encapsulating wrap
| setForceCenter (Point3 const p)
| set the force center
| setRadius (float r)
| set the radius
## Static Public Member Functions
static TypeHandle | getClassType ()

## Detailed Description

Pure virtual class for sinks and sources.

## Member Enumeration Documentation

enum FalloffType

Enumerator:

  FTONEOVERR |
  FTONEOVERRSQUARED |
  FTONEOVERRCUBED |

## Member Function Documentation

static TypeHandle getClassType | ( |  | ) | `[static]`

Reimplemented from LinearForce.

Reimplemented in LinearSinkForce, and LinearSourceForce.

FalloffType getFalloffType | ( |  | ) |

falloff_type query

Point3 getForceCenter | ( |  | ) |

force_center query

float getRadius | ( |  | ) |

radius query

float getScalarTerm | ( |  | ) |

calculate the term based on falloff

setFalloffType | ( | FalloffType | ft | ) |

falloff_type encapsulating wrap

setForceCenter | ( | Point3 const | p | ) |

set the force center

setRadius | ( | float | r | ) |

set the radius

All Classes Namespaces Functions Variables Enumerations Enumerator Properties