Panda3D
Loading...
Searching...
No Matches
physxSpringDesc.h
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.h
10 * @author enn0x
11 * @date 2009-09-28
12 */
13
14#ifndef PHYSXSPRINGDESC_H
15#define PHYSXSPRINGDESC_H
16
17#include "pandabase.h"
18
19#include "physx_includes.h"
20
21/**
22 * Describes a joint spring. The spring is implicitly integrated, so even
23 * high spring and damper coefficients should be robust.
24 */
25class EXPCL_PANDAPHYSX PhysxSpringDesc {
26
27PUBLISHED:
28 INLINE PhysxSpringDesc();
29 INLINE PhysxSpringDesc(float spring, float damper=0, float targetValue=0);
30 INLINE ~PhysxSpringDesc();
31
32 void set_spring(float spring);
33 void set_damper(float damper);
34 void set_target_value(float target);
35
36 float get_spring() const;
37 float get_damper() const;
38 float get_target_value() const;
39
40public:
41 NxSpringDesc _desc;
42};
43
44#include "physxSpringDesc.I"
45
46#endif // PHYSXSPRINGDESC_H
Describes a joint spring.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.