Panda3D
Main Page
Classes
Files
File List
All
Classes
Functions
Variables
Enumerations
panda
src
physx
physxSpringDesc.h
1
// Filename: physxSpringDesc.h
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
#ifndef PHYSXSPRINGDESC_H
16
#define PHYSXSPRINGDESC_H
17
18
#include "pandabase.h"
19
20
#include "physx_includes.h"
21
22
////////////////////////////////////////////////////////////////////
23
// Class : PhysxSpringDesc
24
// Description : Describes a joint spring. The spring is implicitly
25
// integrated, so even high spring and damper
26
// coefficients should be robust.
27
////////////////////////////////////////////////////////////////////
28
class
EXPCL_PANDAPHYSX
PhysxSpringDesc
{
29
30
PUBLISHED:
31
INLINE
PhysxSpringDesc
();
32
INLINE PhysxSpringDesc(
float
spring,
float
damper=0,
float
targetValue=0);
33
INLINE ~PhysxSpringDesc();
34
35
void
set_spring(
float
spring);
36
void
set_damper(
float
damper);
37
void
set_target_value(
float
target);
38
39
float
get_spring()
const
;
40
float
get_damper()
const
;
41
float
get_target_value()
const
;
42
43
public
:
44
NxSpringDesc _desc;
45
};
46
47
#include "physxSpringDesc.I"
48
49
#endif // PHYSXSPRINGDESC_H
PhysxSpringDesc
Describes a joint spring.
Definition:
physxSpringDesc.h:28
Generated on Mon Feb 1 2016 13:44:36 for Panda3D by
1.8.5