Panda3D
Loading...
Searching...
No Matches
bulletConstraint.I
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 bulletConstraint.I
10 * @author enn0x
11 * @date 2010-03-01
12 */
13
14/**
15 *
16 */
17INLINE BulletConstraint::
18~BulletConstraint() {
19
20}
21
22/**
23 * Sets the applied impulse limit for breaking the constraint. If the limit
24 * is exceeded the constraint will be disabled. Disabled constraints are not
25 * removed from the world, and can be re-enabled.
26 */
27INLINE void BulletConstraint::
28set_breaking_threshold(PN_stdfloat threshold) {
29
30 ptr()->setBreakingImpulseThreshold(threshold);
31}
32
33/**
34 * Returns the applied impluse limit for breaking the constraint.
35 */
36INLINE PN_stdfloat BulletConstraint::
38
39 return (PN_stdfloat)ptr()->getBreakingImpulseThreshold();
40}
41
42/**
43 *
44 */
45INLINE void BulletConstraint::
46set_enabled(bool enable) {
47
48 ptr()->setEnabled(enable);
49}
50
51/**
52 * Returns TRUE if the constraint is enabled.
53 */
54INLINE bool BulletConstraint::
55is_enabled() const {
56
57 return ptr()->isEnabled();
58}
set_breaking_threshold
Sets the applied impulse limit for breaking the constraint.
is_enabled
Returns TRUE if the constraint is enabled.
get_breaking_threshold
Returns the applied impluse limit for breaking the constraint.