00001 // Filename: zSpinParticleFactory.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 //////////////////////////////////////////////////////////////////// 00021 // Function : set_initial_angle 00022 // Access : public 00023 //////////////////////////////////////////////////////////////////// 00024 INLINE void ZSpinParticleFactory:: 00025 set_initial_angle(float angle) { 00026 _initial_angle = angle; 00027 } 00028 00029 //////////////////////////////////////////////////////////////////// 00030 // Function : set_final_angle 00031 // Access : public 00032 //////////////////////////////////////////////////////////////////// 00033 INLINE void ZSpinParticleFactory:: 00034 set_final_angle(float angle) { 00035 _final_angle = angle; 00036 } 00037 00038 //////////////////////////////////////////////////////////////////// 00039 // Function : set_initial_angle_spread 00040 // Access : public 00041 //////////////////////////////////////////////////////////////////// 00042 INLINE void ZSpinParticleFactory:: 00043 set_initial_angle_spread(float spread) { 00044 _initial_angle_spread = spread; 00045 } 00046 00047 //////////////////////////////////////////////////////////////////// 00048 // Function : set_final_angle_spread 00049 // Access : public 00050 //////////////////////////////////////////////////////////////////// 00051 INLINE void ZSpinParticleFactory:: 00052 set_final_angle_spread(float spread) { 00053 _final_angle_spread = spread; 00054 } 00055 00056 //////////////////////////////////////////////////////////////////// 00057 // Function : get_initial_angle 00058 // Access : public 00059 //////////////////////////////////////////////////////////////////// 00060 INLINE float ZSpinParticleFactory:: 00061 get_initial_angle(void) const { 00062 return _initial_angle; 00063 } 00064 00065 //////////////////////////////////////////////////////////////////// 00066 // Function : get_final_angle 00067 // Access : public 00068 //////////////////////////////////////////////////////////////////// 00069 INLINE float ZSpinParticleFactory:: 00070 get_final_angle(void) const { 00071 return _final_angle; 00072 } 00073 00074 //////////////////////////////////////////////////////////////////// 00075 // Function : get_initial_angle_spread 00076 // Access : public 00077 //////////////////////////////////////////////////////////////////// 00078 INLINE float ZSpinParticleFactory:: 00079 get_initial_angle_spread(void) const { 00080 return _initial_angle_spread; 00081 } 00082 00083 //////////////////////////////////////////////////////////////////// 00084 // Function : get_final_angle_spread 00085 // Access : public 00086 //////////////////////////////////////////////////////////////////// 00087 INLINE float ZSpinParticleFactory:: 00088 get_final_angle_spread(void) const { 00089 return _final_angle_spread; 00090 } 00091 00092 //////////////////////////////////////////////////////////////////// 00093 // Function : get_angular_velocity 00094 // Access : public 00095 //////////////////////////////////////////////////////////////////// 00096 INLINE float ZSpinParticleFactory:: 00097 get_angular_velocity(void) const { 00098 return _angular_velocity; 00099 } 00100 00101 INLINE void ZSpinParticleFactory:: 00102 set_angular_velocity(float v) { 00103 _angular_velocity = v; 00104 } 00105 00106 INLINE float ZSpinParticleFactory:: 00107 get_angular_velocity_spread(void) const { 00108 return _angular_velocity_spread; 00109 } 00110 00111 INLINE void ZSpinParticleFactory:: 00112 set_angular_velocity_spread(float spread) { 00113 _angular_velocity_spread = spread; 00114 } 00115 00116 00117 INLINE void ZSpinParticleFactory:: 00118 enable_angular_velocity(bool bEnabled) { 00119 _bUseAngularVelocity = bEnabled; 00120 } 00121 00122 INLINE bool ZSpinParticleFactory:: 00123 get_angular_velocity_enabled(void) const { 00124 return _bUseAngularVelocity; 00125 } 00126