class ForceNode

Bases: PandaNode

A force that lives in the scene graph and is therefore subject to local coordinate systems. An example of this would be simulating gravity in a rotating space station. or something.

Inheritance diagram

Inheritance diagram of ForceNode

__init__(name: str) → None

default constructor

addForce(force: BaseForce) → None
addForcesFrom(other: ForceNode) → None

append operation

clear() → None
property forces

Getter Setter

replace operation

Return type


static getClassType() → TypeHandle
Return type


getForce(index: size_t) → BaseForce
Return type


getForces() → list
getNumForces() → size_t
Return type


insertForce(index: size_t, force: BaseForce) → None

insert operation

removeForce(force: BaseForce) → None

remove operation

removeForce(index: size_t) → None

remove operation

setForce(index: size_t, force: BaseForce) → None

replace operation

writeForces(out: ostream, indent: int) → None

Write a string representation of this instance to <out>.