Panda3D

Loading...
Searching...
No Matches
physxBoxControllerDesc.h
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file physxBoxControllerDesc.h
10 * @author enn0x
11 * @date 2009-09-22
12 */
13
14#ifndef PHYSXBOXCONTROLLERDESC_H
15#define PHYSXBOXCONTROLLERDESC_H
16
17#include "pandabase.h"
18#include "luse.h"
19
20#include "physxControllerDesc.h"
21#include "physx_includes.h"
22
23/**
24 * Descriptor class for PhysxBoxController.
25 */
26 class EXPCL_PANDAPHYSX PhysxBoxControllerDesc : public PhysxControllerDesc {
27
28PUBLISHED:
29 INLINE PhysxBoxControllerDesc();
30 INLINE ~PhysxBoxControllerDesc();
31
32 INLINE void set_to_default();
33 INLINE bool is_valid() const;
34
35 void set_extents(const LVector3f &extents);
36
37 LVector3f get_extents() const;
38
39 public:
40 NxControllerDesc *ptr() const { return (NxControllerDesc *)&_desc; };
41 NxBoxControllerDesc _desc;
42};
43
44#include "physxBoxControllerDesc.I"
45
46#endif // PHYSXBOXCONTROLLERDESC_H
PhysxBoxControllerDesc::get_extents
LVector3f get_extents() const
Returns the dimensions of the box.
Definition physxBoxControllerDesc.cxx:33
PhysxBoxControllerDesc::set_extents
void set_extents(const LVector3f &extents)
Sets the dimensions of the box.
Definition physxBoxControllerDesc.cxx:24
PhysxBoxControllerDesc::is_valid
bool is_valid() const
Returns true if the descriptor is valid.
Definition physxBoxControllerDesc.I:44
PhysxBoxControllerDesc::set_to_default
void set_to_default()
(re)sets the structure to the default.
Definition physxBoxControllerDesc.I:35
luse.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
pandabase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
physxBoxControllerDesc.I
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
physxControllerDesc.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
physx_includes.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.