panda3d.physics.ForceNode

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

clear() → None
getForce(index: size_t) → BaseForce
Return type

BaseForce

getNumForces() → size_t
Return type

size_t

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

append operation

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

replace operation

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

insert operation

removeForce(force: BaseForce) → None

remove operation

removeForce(index: size_t) → None

remove operation

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

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

static getClassType() → TypeHandle
Return type

TypeHandle

getForces() → list
property forces

Getter Setter

replace operation

Return type

Sequence[BaseForce]