ForceNode

from panda3d.physics import ForceNode
class ForceNode

Bases:

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

add_force(force: BaseForce)
add_forces_from(other: ForceNode)

append operation

clear()
property forces Sequence[BaseForce]

Getter Setter

replace operation

static get_class_type() panda3d.core.TypeHandle
get_force(index: int) BaseForce
get_forces() list
get_num_forces() int
insert_force(index: int, force: BaseForce)

insert operation

remove_force(force: BaseForce)

remove operation

remove_force(index: int)

remove operation

set_force(index: int, force: BaseForce)

replace operation

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

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