54 lines
1.2 KiB
C++
54 lines
1.2 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 physxControllerDesc.h
|
|
* @author enn0x
|
|
* @date 2009-09-22
|
|
*/
|
|
|
|
#ifndef PHYSXCONTROLLERDESC_H
|
|
#define PHYSXCONTROLLERDESC_H
|
|
|
|
#include "pandabase.h"
|
|
#include "luse.h"
|
|
|
|
#include "physx_includes.h"
|
|
|
|
/**
|
|
* Descriptor class for a character controller.
|
|
*/
|
|
class EXPCL_PANDAPHYSX PhysxControllerDesc {
|
|
PUBLISHED:
|
|
virtual ~PhysxControllerDesc() {};
|
|
|
|
virtual void set_to_default() = 0;
|
|
virtual bool is_valid() const = 0;
|
|
|
|
void set_pos(const LPoint3f &pos);
|
|
void set_slope_limit(float slopeLimit);
|
|
void set_skin_width(float skinWidth);
|
|
void set_step_offset(float setpOffset);
|
|
void set_interaction_flag(bool interactionFlag);
|
|
|
|
LPoint3f get_pos() const;
|
|
float get_slope_limit() const;
|
|
float get_skin_width() const;
|
|
float get_step_offset() const;
|
|
bool get_interaction_flag() const;
|
|
|
|
public:
|
|
virtual NxControllerDesc *ptr() const = 0;
|
|
|
|
protected:
|
|
INLINE PhysxControllerDesc();
|
|
};
|
|
|
|
#include "physxControllerDesc.I"
|
|
|
|
#endif // PHYSXCONTROLLERDESC_H
|