00001 // Filename: zSpinParticle.I 00002 // Created by: charles (16Aug00) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 //////////////////////////////////////////////////////////////////// 00020 // Function : set_initial_angle 00021 // Description : accessor 00022 //////////////////////////////////////////////////////////////////// 00023 INLINE void ZSpinParticle:: 00024 set_initial_angle(float t) { 00025 _initial_angle = t; 00026 } 00027 00028 //////////////////////////////////////////////////////////////////// 00029 // Function : get_initial_angle 00030 // Description : accessor 00031 //////////////////////////////////////////////////////////////////// 00032 INLINE float ZSpinParticle:: 00033 get_initial_angle(void) const { 00034 return _initial_angle; 00035 } 00036 00037 //////////////////////////////////////////////////////////////////// 00038 // Function : set_final_angle 00039 // Description : accessor 00040 //////////////////////////////////////////////////////////////////// 00041 INLINE void ZSpinParticle:: 00042 set_final_angle(float t) { 00043 _final_angle = t; 00044 } 00045 00046 //////////////////////////////////////////////////////////////////// 00047 // Function : get_final_angle 00048 // Description : accessor 00049 //////////////////////////////////////////////////////////////////// 00050 INLINE float ZSpinParticle:: 00051 get_final_angle(void) const { 00052 return _final_angle; 00053 } 00054 00055 INLINE float ZSpinParticle:: 00056 get_angular_velocity(void) const { 00057 return _angular_velocity; 00058 } 00059 00060 INLINE void ZSpinParticle:: 00061 set_angular_velocity(float v) { 00062 _angular_velocity = v; 00063 } 00064 00065 INLINE void ZSpinParticle:: 00066 enable_angular_velocity(bool bEnabled) { 00067 _bUseAngularVelocity = bEnabled; 00068 } 00069 00070 INLINE bool ZSpinParticle:: 00071 get_angular_velocity_enabled(void) const { 00072 return _bUseAngularVelocity; 00073 } 00074 00075