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

explicit ForceNode(std::string const &name)

default constructor

copy constructor

void add_force(BaseForce *force)
void add_forces_from(ForceNode const &other)

append operation

void clear(void)
static TypeHandle get_class_type(void)
BaseForce *get_force(std::size_t index) const
std::size_t get_num_forces(void) const
void insert_force(std::size_t index, BaseForce *force)

insert operation

void remove_force(BaseForce *force)
void remove_force(std::size_t index)

remove operation

void set_force(std::size_t index, BaseForce *force)

replace operation

virtual void write_forces(std::ostream &out, int indent = 0) const

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