- Timestamp:
- 03/21/12 18:36:20 (15 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osgParticle/AngularAccelOperator
r5328 r13041 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 2 2 * 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 5 5 * (at your option) any later version. The full license is in LICENSE file 6 6 * included with this distribution, and on the openscenegraph.org website. 7 * 7 * 8 8 * This library is distributed in the hope that it will be useful, 9 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 11 * OpenSceneGraph Public License for more details. 12 12 */ … … 27 27 { 28 28 29 /** An operator class that applies a constant angular acceleration to 29 /** An operator class that applies a constant angular acceleration to 30 30 * the particles. 31 31 */ … … 39 39 /// Get the angular acceleration vector. 40 40 inline const osg::Vec3& getAngularAcceleration() const; 41 41 42 42 /// Set the angular acceleration vector. 43 43 inline void setAngularAcceleration(const osg::Vec3& v); 44 44 45 45 /// Apply the angular acceleration to a particle. Do not call this method manually. 46 46 inline void operate(Particle* P, double dt); 47 47 48 48 /// Perform some initializations. Do not call this method manually. 49 49 inline void beginOperate(Program *prg); … … 51 51 protected: 52 52 virtual ~AngularAccelOperator() {} 53 AngularAccelOperator& operator=(const AngularAccelOperator& ) { return *this; } 53 AngularAccelOperator& operator=(const AngularAccelOperator& ) { return *this; } 54 54 55 55 private: … … 59 59 60 60 // INLINE FUNCTIONS 61 61 62 62 inline AngularAccelOperator::AngularAccelOperator() 63 63 : Operator(), _angul_araccel(0, 0, 0) 64 64 { 65 65 } 66 66 67 67 inline AngularAccelOperator::AngularAccelOperator(const AngularAccelOperator& copy, const osg::CopyOp& copyop) 68 68 : Operator(copy, copyop), _angul_araccel(copy._angul_araccel) … … 84 84 P->addAngularVelocity(_xf_angul_araccel * dt); 85 85 } 86 86 87 87 inline void AngularAccelOperator::beginOperate(Program *prg) 88 88 {
