Panda3D
Loading...
Searching...
No Matches
angularForce.cxx
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file angularForce.cxx
10 * @author charles
11 * @date 2000-08-08
12 */
13
14#include "angularForce.h"
15
16TypeHandle AngularForce::_type_handle;
17
18/**
19 * constructor
20 */
21AngularForce::
22AngularForce() :
23 BaseForce() {
24}
25
26/**
27 * copy constructor
28 */
29AngularForce::
30AngularForce(const AngularForce &copy) :
31 BaseForce(copy) {
32}
33
34/**
35 * destructor
36 */
40
41/**
42 * access query
43 */
45get_quat(const PhysicsObject *po) {
46 LRotation v = get_child_quat(po);
47 return v;
48}
49
50/**
51 * access query
52 */
54is_linear() const {
55 return false;
56}
57
58/**
59 * Write a string representation of this instance to <out>.
60 */
62output(std::ostream &out) const {
63 #ifndef NDEBUG //[
64 out<<"AngularForce (id "<<this<<")";
65 #endif //] NDEBUG
66}
67
68/**
69 * Write a string representation of this instance to <out>.
70 */
72write(std::ostream &out, int indent) const {
73 #ifndef NDEBUG //[
74 out.width(indent); out<<""; out<<"AngularForce (id "<<this<<")\n";
76 #endif //] NDEBUG
77}
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
pure virtual parent of all quat-based forces.
virtual void output(std::ostream &out) const
Write a string representation of this instance to <out>.
virtual ~AngularForce()
destructor
LRotation get_quat(const PhysicsObject *po)
access query
virtual bool is_linear() const
access query
virtual void write(std::ostream &out, int indent=0) const
Write a string representation of this instance to <out>.
pure virtual base class for all forces that could POSSIBLY exist.
Definition baseForce.h:29
virtual void write(std::ostream &out, int indent_level=0) const
Write a string representation of this instance to <out>.
Definition baseForce.cxx:59
A body on which physics will be applied.
TypeHandle is the identifier used to differentiate C++ class types.
Definition typeHandle.h:81
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
Definition indent.cxx:20