15 #ifndef PHYSXSHAPEDESC_H
16 #define PHYSXSHAPEDESC_H
18 #include "pandabase.h"
21 #include "physxEnums.h"
22 #include "physx_includes.h"
35 virtual void set_to_default() = 0;
36 virtual bool is_valid()
const = 0;
38 void set_name(
const char *name);
39 void set_trigger(
bool value);
40 void set_local_pos(
const LPoint3f &pos);
42 void set_local_hpr(
float h,
float p,
float r);
43 void set_skin_width(
float skinWidth);
44 void set_shape_flag(
const PhysxShapeFlag flag,
bool value);
45 void set_mass(
float mass);
46 void set_density(
float density);
47 void set_group(
unsigned short group);
49 void set_material_index(
unsigned short index);
51 const char *get_name()
const;
54 float get_skin_width()
const;
55 bool get_shape_flag(
const PhysxShapeFlag flag)
const;
56 float get_mass()
const;
57 float get_density()
const;
58 unsigned short get_group()
const;
59 unsigned short get_material_index()
const;
62 virtual NxShapeDesc *ptr()
const = 0;
69 INLINE ~PhysxShapeDesc();
72 #include "physxShapeDesc.I"
74 #endif // PHYSXSHAPEDESC_H
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
A class for describing a shape's surface properties.
This class exists just to provide scoping for the enums shared by PhysX classes.
This is a 4-by-4 transform matrix.
A base class for all things that want to be reference-counted.
Abstract base class for shape descriptors.