open_toontown_panda3d/panda/src/physx/physxMotorDesc.h

48 lines
1.1 KiB
C++

/**
* 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."
*
* @file physxMotorDesc.h
* @author enn0x
* @date 2009-09-28
*/
#ifndef PHYSXMOTORDESC_H
#define PHYSXMOTORDESC_H
#include "pandabase.h"
#include "physx_includes.h"
/**
* Describes a joint motor. Some joints can be motorized, this allows them to
* apply a force to cause attached actors to move. Joints which can be
* motorized: - PhysxPulleyJoint - PhysxRevoluteJoint
*/
class EXPCL_PANDAPHYSX PhysxMotorDesc {
PUBLISHED:
INLINE PhysxMotorDesc();
INLINE PhysxMotorDesc(float velTarget, float maxForce=0, bool freeSpin=0);
INLINE ~PhysxMotorDesc();
void set_vel_target(float velTarget);
void set_max_force(float maxForce);
void set_free_spin(bool freeSpin);
float get_vel_target() const;
float get_max_force() const;
bool get_free_spin() const;
public:
NxMotorDesc _desc;
};
#include "physxMotorDesc.I"
#endif // PHYSXMOTORDESC_H