Panda3D
Main Page
Classes
Files
File List
All
Classes
Functions
Variables
Enumerations
panda
src
physx
physxActorDesc.h
1
// Filename: physxActorDesc.h
2
// Created by: enn0x (05Sep09)
3
//
4
////////////////////////////////////////////////////////////////////
5
//
6
// PANDA 3D SOFTWARE
7
// Copyright (c) Carnegie Mellon University. All rights reserved.
8
//
9
// All use of this software is subject to the terms of the revised BSD
10
// license. You should have received a copy of this license along
11
// with this source code in a file named "LICENSE."
12
//
13
////////////////////////////////////////////////////////////////////
14
15
#ifndef PHYSXACTORDESC_H
16
#define PHYSXACTORDESC_H
17
18
#include "pandabase.h"
19
#include "luse.h"
20
21
#include "physx_includes.h"
22
23
class
PhysxBodyDesc
;
24
class
PhysxShapeDesc
;
25
26
////////////////////////////////////////////////////////////////////
27
// Class : PhysxActorDesc
28
// Description : Descriptor for PhysxActor.
29
////////////////////////////////////////////////////////////////////
30
class
EXPCL_PANDAPHYSX
PhysxActorDesc
{
31
32
PUBLISHED:
33
INLINE
PhysxActorDesc
();
34
INLINE ~PhysxActorDesc();
35
36
INLINE
void
set_to_default();
37
INLINE
bool
is_valid()
const
;
38
39
void
add_shape(
PhysxShapeDesc
&desc);
40
41
void
set_name(
const
char
*name);
42
void
set_density(
float
density);
43
void
set_global_pos(
const
LPoint3f
&pos);
44
void
set_global_mat(
const
LMatrix4f
&mat);
45
void
set_global_hpr(
float
h,
float
p,
float
r);
46
void
set_body(
PhysxBodyDesc
&desc);
47
48
const
char
*get_name()
const
;
49
float
get_density()
const
;
50
LPoint3f
get_global_pos()
const
;
51
LMatrix4f
get_global_mat()
const
;
52
PhysxBodyDesc
get_body()
const
;
53
54
public
:
55
NxActorDesc _desc;
56
57
private
:
58
string
_name;
59
};
60
61
#include "physxActorDesc.I"
62
63
#endif // PHYSXACTORDESC_H
LPoint3f
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
Definition:
lpoint3.h:99
LMatrix4f
This is a 4-by-4 transform matrix.
Definition:
lmatrix.h:451
PhysxActorDesc
Descriptor for PhysxActor.
Definition:
physxActorDesc.h:30
PhysxShapeDesc
Abstract base class for shape descriptors.
Definition:
physxShapeDesc.h:32
PhysxBodyDesc
Descriptor for the optional rigid body dynamic state of PhysxActor.
Definition:
physxBodyDesc.h:29
Generated on Mon Feb 1 2016 13:44:35 for Panda3D by
1.8.5