14#ifndef PHYSXSHAPEDESC_H
15#define PHYSXSHAPEDESC_H
29class EXPCL_PANDAPHYSX PhysxShapeDesc :
public PhysxEnums,
public ReferenceCount {
32 virtual void set_to_default() = 0;
33 virtual bool is_valid()
const = 0;
37 void set_local_pos(
const LPoint3f &pos);
38 void set_local_mat(
const LMatrix4f &mat);
39 void set_local_hpr(
float h,
float p,
float r);
41 void set_shape_flag(
const PhysxShapeFlag flag,
bool value);
44 void set_group(
unsigned short group);
46 void set_material_index(
unsigned short index);
48 const char *get_name()
const;
49 LPoint3f get_local_pos()
const;
50 LMatrix4f get_local_mat()
const;
51 float get_skin_width()
const;
52 bool get_shape_flag(
const PhysxShapeFlag flag)
const;
53 float get_mass()
const;
54 float get_density()
const;
55 unsigned short get_group()
const;
56 unsigned short get_material_index()
const;
59 virtual NxShapeDesc *ptr()
const = 0;
65 INLINE PhysxShapeDesc();
66 INLINE ~PhysxShapeDesc();
This class exists just to provide scoping for the enums shared by PhysX classes.
A class for describing a shape's surface properties.
void set_density(float density)
Sets the density of this individual shape when computing mass inertial properties for a rigidbody (un...
void set_mass(float mass)
Sets the mass of this individual shape when computing mass inertial properties for a rigidbody.
void set_skin_width(float skinWidth)
Specifies by how much shapes can interpenetrate.
void set_trigger(bool value)
This shape will become a trigger shape if this parameter is set to TRUE.
void set_name(const char *name)
Sets a possible debug name.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.