Panda3D
panda
src
physx
physxSpringDesc.cxx
1
// Filename: physxSpringDesc.cxx
2
// Created by: enn0x (28Sep09)
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
#include "physxSpringDesc.h"
16
17
////////////////////////////////////////////////////////////////////
18
// Function: PhysxSpringDesc::set_spring
19
// Access: Published
20
// Description:
21
////////////////////////////////////////////////////////////////////
22
void
PhysxSpringDesc::
23
set_spring(
float
spring) {
24
25
_desc.spring = spring;
26
}
27
28
////////////////////////////////////////////////////////////////////
29
// Function: PhysxSpringDesc::set_damper
30
// Access: Published
31
// Description:
32
////////////////////////////////////////////////////////////////////
33
void
PhysxSpringDesc::
34
set_damper(
float
damper) {
35
36
_desc.damper = damper;
37
}
38
39
////////////////////////////////////////////////////////////////////
40
// Function: PhysxSpringDesc::set_target_value
41
// Access: Published
42
// Description:
43
////////////////////////////////////////////////////////////////////
44
void
PhysxSpringDesc::
45
set_target_value(
float
targetValue) {
46
47
_desc.targetValue = targetValue;
48
}
49
50
////////////////////////////////////////////////////////////////////
51
// Function: PhysxSpringDesc::get_spring
52
// Access: Published
53
// Description:
54
////////////////////////////////////////////////////////////////////
55
float
PhysxSpringDesc::
56
get_spring()
const
{
57
58
return
_desc.spring;
59
}
60
61
////////////////////////////////////////////////////////////////////
62
// Function: PhysxSpringDesc::get_damper
63
// Access: Published
64
// Description:
65
////////////////////////////////////////////////////////////////////
66
float
PhysxSpringDesc::
67
get_damper()
const
{
68
69
return
_desc.damper;
70
}
71
72
////////////////////////////////////////////////////////////////////
73
// Function: PhysxSpringDesc::get_target_value
74
// Access: Published
75
// Description:
76
////////////////////////////////////////////////////////////////////
77
float
PhysxSpringDesc::
78
get_target_value()
const
{
79
80
return
_desc.targetValue;
81
}
82
Generated on Wed May 17 2017 23:46:06 for Panda3D by
1.8.13