from panda3d.physics import 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)

default constructor

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

append operation

property forces Sequence[BaseForce]

Getter Setter

replace operation

static getClassType() panda3d.core.TypeHandle
getForce(index: int) BaseForce
getForces() list
getNumForces() int
insertForce(index: int, force: BaseForce)

insert operation

removeForce(force: BaseForce)

remove operation

removeForce(index: int)

remove operation

setForce(index: int, force: BaseForce)

replace operation

writeForces(out: panda3d.core.ostream, indent: int)

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