Panda3D
panda
src
particlesystem
zSpinParticle.I
1
// Filename: zSpinParticle.I
2
// Created by: charles (16Aug00)
3
//
4
////////////////////////////////////////////////////////////////////
5
//
6
// PANDA 3D SOFTWARE
7
// Copyright (c) Carnegie Mellon University. All rights reserved.
8
//
9
// All use of this software is subject to the terms of the revised BSD
10
// license. You should have received a copy of this license along
11
// with this source code in a file named "LICENSE."
12
//
13
////////////////////////////////////////////////////////////////////
14
15
////////////////////////////////////////////////////////////////////
16
// Function : set_initial_angle
17
// Description : accessor
18
////////////////////////////////////////////////////////////////////
19
INLINE
void
ZSpinParticle::
20
set_initial_angle
(PN_stdfloat t) {
21
_initial_angle = t;
22
}
23
24
////////////////////////////////////////////////////////////////////
25
// Function : get_initial_angle
26
// Description : accessor
27
////////////////////////////////////////////////////////////////////
28
INLINE PN_stdfloat
ZSpinParticle::
29
get_initial_angle
()
const
{
30
return
_initial_angle;
31
}
32
33
////////////////////////////////////////////////////////////////////
34
// Function : set_final_angle
35
// Description : accessor
36
////////////////////////////////////////////////////////////////////
37
INLINE
void
ZSpinParticle::
38
set_final_angle
(PN_stdfloat t) {
39
_final_angle = t;
40
}
41
42
////////////////////////////////////////////////////////////////////
43
// Function : get_final_angle
44
// Description : accessor
45
////////////////////////////////////////////////////////////////////
46
INLINE PN_stdfloat
ZSpinParticle::
47
get_final_angle
()
const
{
48
return
_final_angle;
49
}
50
51
INLINE PN_stdfloat ZSpinParticle::
52
get_angular_velocity()
const
{
53
return
_angular_velocity;
54
}
55
56
INLINE
void
ZSpinParticle::
57
set_angular_velocity(PN_stdfloat v) {
58
_angular_velocity = v;
59
}
60
61
INLINE
void
ZSpinParticle::
62
enable_angular_velocity(
bool
bEnabled) {
63
_bUseAngularVelocity = bEnabled;
64
}
65
66
INLINE
bool
ZSpinParticle::
67
get_angular_velocity_enabled()
const
{
68
return
_bUseAngularVelocity;
69
}
70
71
ZSpinParticle::set_initial_angle
void set_initial_angle(PN_stdfloat t)
accessor
Definition:
zSpinParticle.I:20
ZSpinParticle::set_final_angle
void set_final_angle(PN_stdfloat t)
accessor
Definition:
zSpinParticle.I:38
ZSpinParticle::get_final_angle
PN_stdfloat get_final_angle() const
accessor
Definition:
zSpinParticle.I:47
ZSpinParticle::get_initial_angle
PN_stdfloat get_initial_angle() const
accessor
Definition:
zSpinParticle.I:29
Generated on Wed May 17 2017 23:44:21 for Panda3D by
1.8.13