open_toontown_panda3d/panda/src/bullet/bulletGenericConstraint.I

48 lines
1.6 KiB
Plaintext

// Filename: bulletGenericConstraint.I
// Created by: enn0x (02Mar10)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license. You should have received a copy of this license along
// with this source code in a file named "LICENSE."
//
////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////
// Function: BulletGenericConstraint::Destructor
// Access: Published
// Description:
////////////////////////////////////////////////////////////////////
INLINE BulletGenericConstraint::
~BulletGenericConstraint() {
delete _constraint;
}
////////////////////////////////////////////////////////////////////
// Function: BulletGenericConstraint::get_frame_a
// Access: Published
// Description:
////////////////////////////////////////////////////////////////////
INLINE CPT(TransformState) BulletGenericConstraint::
get_frame_a() const {
return btTrans_to_TransformState(_constraint->getFrameOffsetA());
}
////////////////////////////////////////////////////////////////////
// Function: BulletGenericConstraint::get_frame_b
// Access: Published
// Description:
////////////////////////////////////////////////////////////////////
INLINE CPT(TransformState) BulletGenericConstraint::
get_frame_b() const {
return btTrans_to_TransformState(_constraint->getFrameOffsetB());
}