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)None
addForcesFrom(other: ForceNode)None

append operation

property forces → Sequence[BaseForce]

Getter Setter

replace operation

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

insert operation

removeForce(force: BaseForce)None

remove operation

removeForce(index: int)None

remove operation

setForce(index: int, force: BaseForce)None

replace operation

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

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