15 #ifndef PHYSXUTILLIB_H 16 #define PHYSXUTILLIB_H 18 #include "pandabase.h" 21 #include "config_physx.h" 39 INLINE ~PhysxUtilLib();
43 LVector3f compute_box_world_edge_normal(
const PhysxBox &box,
unsigned int edge_index);
47 void set_fpu_exceptions(
bool b);
48 void set_fpu_precision24();
49 void set_fpu_precision53();
50 void set_fpu_precision64();
51 void set_fpu_rounding_chop();
52 void set_fpu_rounding_down();
53 void set_fpu_rounding_near();
54 void set_fpu_rounding_up();
55 int int_ceil(
const float &f);
56 int int_chop(
const float &f);
57 int int_floor(
const float &f);
63 float compute_sphere_mass(
float radius,
float density);
64 float compute_sphere_density(
float radius,
float mass);
65 float compute_box_mass(
const LVector3f &extents,
float density);
66 float compute_box_density(
const LVector3f &extents,
float mass);
67 float compute_ellipsoid_mass(
const LVector3f &extents,
float density);
68 float compute_ellipsoid_density(
const LVector3f &extents,
float mass);
69 float compute_cylinder_mass(
float radius,
float length,
float density);
70 float compute_cylinder_density(
float radius,
float length,
float mass);
71 float compute_cone_mass(
float radius,
float length,
float density);
72 float compute_cone_density(
float radius,
float length,
float mass);
73 LVector3f compute_box_inertia_tensor(
float mass,
float xlength,
float ylength,
float zlength);
74 LVector3f compute_sphere_inertia_tensor(
float mass,
float radius,
bool hollow);
98 #include "physxUtilLib.I" 100 #endif // PHYSUTILLIB_H
Represents a sphere defined by its center point and radius.
Represents an oriented bounding box, as a center point, extents(radii) and a rotation.
Represention of a axis aligned bounding box.
This is a three-component vector distance (as opposed to a three-component point, which represents a ...
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
Represents a line segment.
This is a 4-by-4 transform matrix.
This is a 3-by-3 transform matrix.
Represents an ray as an origin and direction.