00001 // Filename: angularVectorForce.I 00002 // Created by: charles (09Aug00) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 //////////////////////////////////////////////////////////////////// 00016 // Function : set_quat 00017 // Access : public 00018 //////////////////////////////////////////////////////////////////// 00019 INLINE void AngularVectorForce:: 00020 set_quat(const LRotation &v) { 00021 _fvec = v; 00022 } 00023 00024 //////////////////////////////////////////////////////////////////// 00025 // Function : set_hpr 00026 // Access : public 00027 //////////////////////////////////////////////////////////////////// 00028 INLINE void AngularVectorForce:: 00029 set_hpr(PN_stdfloat h, PN_stdfloat p, PN_stdfloat r) { 00030 _fvec.set_hpr(LVecBase3(h, p, r)); 00031 } 00032 00033 //////////////////////////////////////////////////////////////////// 00034 // Function : get_local_quat 00035 // Access : public 00036 //////////////////////////////////////////////////////////////////// 00037 INLINE LRotation AngularVectorForce:: 00038 get_local_quat() const { 00039 return _fvec; 00040 }