41 lines
1.3 KiB
Plaintext
41 lines
1.3 KiB
Plaintext
// Filename: angularVectorForce.I
|
|
// Created by: charles (09Aug00)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
//
|
|
// PANDA 3D SOFTWARE
|
|
// Copyright (c) Carnegie Mellon University. All rights reserved.
|
|
//
|
|
// All use of this software is subject to the terms of the revised BSD
|
|
// license. You should have received a copy of this license along
|
|
// with this source code in a file named "LICENSE."
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function : set_quat
|
|
// Access : public
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE void AngularVectorForce::
|
|
set_quat(const LRotationf &v) {
|
|
_fvec = v;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function : set_hpr
|
|
// Access : public
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE void AngularVectorForce::
|
|
set_hpr(float h, float p, float r) {
|
|
_fvec.set_hpr(LVecBase3f(h, p, r));
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function : get_local_quat
|
|
// Access : public
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE LRotationf AngularVectorForce::
|
|
get_local_quat() const {
|
|
return _fvec;
|
|
}
|