Panda3D
Loading...
Searching...
No Matches
physxJointDriveDesc.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 physxJointDriveDesc.cxx
10 * @author enn0x
11 * @date 2009-10-01
12 */
13
14#include "physxJointDriveDesc.h"
15
16/**
17 *
18 */
19void PhysxJointDriveDesc::
20set_spring(float spring) {
21
22 _desc.spring = spring;
23}
24
25/**
26 *
27 */
28void PhysxJointDriveDesc::
29set_damping(float damping) {
30
31 _desc.damping = damping;
32}
33
34/**
35 *
36 */
37void PhysxJointDriveDesc::
38set_force_limit(float forceLimit) {
39
40 _desc.forceLimit = forceLimit;
41}
42
43/**
44 *
45 */
46void PhysxJointDriveDesc::
47set_drive_type(PhysxD6JointDriveType driveType) {
48
49 _desc.driveType = (NxD6JointDriveType)driveType;
50}
51
52/**
53 *
54 */
55float PhysxJointDriveDesc::
56get_spring() const {
57
58 return _desc.spring;
59}
60
61/**
62 *
63 */
64float PhysxJointDriveDesc::
65get_damping() const {
66
67 return _desc.damping;
68}
69
70/**
71 *
72 */
73float PhysxJointDriveDesc::
74get_force_limit() const {
75
76 return _desc.forceLimit;
77}
78
79/**
80 *
81 */
82PhysxEnums::PhysxD6JointDriveType PhysxJointDriveDesc::
83get_drive_type() const {
84
85 return (PhysxD6JointDriveType)_desc.driveType.bitField;
86}
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.