Physical

from panda3d.physics import Physical
class Physical

Bases: TypedReferenceCount

Defines a set of physically modeled attributes. If you want physics applied to your class, derive it from this.

Inheritance diagram

Inheritance diagram of Physical

__init__(*args, **kwargs)
addAngularForce()

C++ Interface: add_angular_force(const Physical self, AngularForce f)

/**
  • Adds an angular force to the force list

*/

addLinearForce()

C++ Interface: add_linear_force(const Physical self, LinearForce f)

/**
  • Adds a linear force to the force list

*/

addPhysicsObject()

C++ Interface: add_physics_object(const Physical self, PhysicsObject po)

/**
  • Adds an object to the physics object vector

*/

add_angular_force()

C++ Interface: add_angular_force(const Physical self, AngularForce f)

/**
  • Adds an angular force to the force list

*/

add_linear_force()

C++ Interface: add_linear_force(const Physical self, LinearForce f)

/**
  • Adds a linear force to the force list

*/

add_physics_object()

C++ Interface: add_physics_object(const Physical self, PhysicsObject po)

/**
  • Adds an object to the physics object vector

*/

angular_forces
clearAngularForces()

C++ Interface: clear_angular_forces(const Physical self)

/**
  • Erases the angular force list

*/

clearLinearForces()

C++ Interface: clear_linear_forces(const Physical self)

/**
  • Erases the linear force list

*/

clearPhysicsObjects()

C++ Interface: clear_physics_objects(const Physical self)

/**
  • Erases the object list

*/

clear_angular_forces()

C++ Interface: clear_angular_forces(const Physical self)

/**
  • Erases the angular force list

*/

clear_linear_forces()

C++ Interface: clear_linear_forces(const Physical self)

/**
  • Erases the linear force list

*/

clear_physics_objects()

C++ Interface: clear_physics_objects(const Physical self)

/**
  • Erases the object list

*/

getAngularForce()

C++ Interface: get_angular_force(Physical self, int index)

/**

*/

getAngularForces()
getClassType()

C++ Interface: get_class_type()

getLinearForce()

C++ Interface: get_linear_force(Physical self, int index)

/**

*/

getLinearForces()
getNumAngularForces()

C++ Interface: get_num_angular_forces(Physical self)

/**

*/

getNumLinearForces()

C++ Interface: get_num_linear_forces(Physical self)

/**

*/

getObjects()

C++ Interface: get_objects(Physical self)

/**

*/

getPhysBody()

C++ Interface: get_phys_body(Physical self)

/**

*/

getPhysicalNode()

C++ Interface: get_physical_node(Physical self)

/**

*/

getPhysicalNodePath()

C++ Interface: get_physical_node_path(Physical self)

/**

*/

getPhysicsManager()

C++ Interface: get_physics_manager(Physical self)

// helpers

/**

*/

getViscosity()

C++ Interface: get_viscosity(Physical self)

/**
  • Get the local viscosity.

*/

get_angular_force()

C++ Interface: get_angular_force(Physical self, int index)

/**

*/

get_angular_forces()
get_class_type()

C++ Interface: get_class_type()

get_linear_force()

C++ Interface: get_linear_force(Physical self, int index)

/**

*/

get_linear_forces()
get_num_angular_forces()

C++ Interface: get_num_angular_forces(Physical self)

/**

*/

get_num_linear_forces()

C++ Interface: get_num_linear_forces(Physical self)

/**

*/

get_objects()

C++ Interface: get_objects(Physical self)

/**

*/

get_phys_body()

C++ Interface: get_phys_body(Physical self)

/**

*/

get_physical_node()

C++ Interface: get_physical_node(Physical self)

/**

*/

get_physical_node_path()

C++ Interface: get_physical_node_path(Physical self)

/**

*/

get_physics_manager()

C++ Interface: get_physics_manager(Physical self)

// helpers

/**

*/

get_viscosity()

C++ Interface: get_viscosity(Physical self)

/**
  • Get the local viscosity.

*/

linear_forces
objects
output()

C++ Interface: output(Physical self, ostream out)

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

*/

removeAngularForce()

C++ Interface: remove_angular_force(const Physical self, AngularForce f)

/**
  • removes an angular force from the force list

*/

removeLinearForce()

C++ Interface: remove_linear_force(const Physical self, LinearForce f)

/**
  • removes a linear force from the force list

*/

remove_angular_force()

C++ Interface: remove_angular_force(const Physical self, AngularForce f)

/**
  • removes an angular force from the force list

*/

remove_linear_force()

C++ Interface: remove_linear_force(const Physical self, LinearForce f)

/**
  • removes a linear force from the force list

*/

setViscosity()

C++ Interface: set_viscosity(const Physical self, float viscosity)

/**
  • Set the local viscosity.

*/

set_viscosity()

C++ Interface: set_viscosity(const Physical self, float viscosity)

/**
  • Set the local viscosity.

*/

viscosity
write()

C++ Interface: write(Physical self, ostream out, int indent)

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

*/

writeAngularForces()

C++ Interface: write_angular_forces(Physical self, ostream out, int indent)

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

*/

writeLinearForces()

C++ Interface: write_linear_forces(Physical self, ostream out, int indent)

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

*/

writePhysicsObjects()

C++ Interface: write_physics_objects(Physical self, ostream out, int indent)

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

*/

write_angular_forces()

C++ Interface: write_angular_forces(Physical self, ostream out, int indent)

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

*/

write_linear_forces()

C++ Interface: write_linear_forces(Physical self, ostream out, int indent)

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

*/

write_physics_objects()

C++ Interface: write_physics_objects(Physical self, ostream out, int indent)

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

*/