Panda3D
Loading...
Searching...
No Matches
physxSpringDesc.cxx
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file physxSpringDesc.cxx
10 * @author enn0x
11 * @date 2009-09-28
12 */
13
14#include "physxSpringDesc.h"
15
16/**
17 *
18 */
19void PhysxSpringDesc::
20set_spring(float spring) {
21
22 _desc.spring = spring;
23}
24
25/**
26 *
27 */
28void PhysxSpringDesc::
29set_damper(float damper) {
30
31 _desc.damper = damper;
32}
33
34/**
35 *
36 */
37void PhysxSpringDesc::
38set_target_value(float targetValue) {
39
40 _desc.targetValue = targetValue;
41}
42
43/**
44 *
45 */
46float PhysxSpringDesc::
47get_spring() const {
48
49 return _desc.spring;
50}
51
52/**
53 *
54 */
55float PhysxSpringDesc::
56get_damper() const {
57
58 return _desc.damper;
59}
60
61/**
62 *
63 */
64float PhysxSpringDesc::
65get_target_value() const {
66
67 return _desc.targetValue;
68}
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.