Panda3D
Loading...
Searching...
No Matches
physxBoxForceFieldShapeDesc.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 physxBoxForceFieldShapeDesc.h
10 * @author enn0x
11 * @date 2009-11-06
12 */
13
14#ifndef PHYSXBOXFORCEFIELDSHAPEDESC_H
15#define PHYSXBOXFORCEFIELDSHAPEDESC_H
16
17#include "pandabase.h"
18#include "luse.h"
19
21#include "physx_includes.h"
22
23/**
24 * Descriptor for a box force field shape.
25 */
26class EXPCL_PANDAPHYSX PhysxBoxForceFieldShapeDesc : public PhysxForceFieldShapeDesc {
27
28PUBLISHED:
29 INLINE PhysxBoxForceFieldShapeDesc();
30 INLINE ~PhysxBoxForceFieldShapeDesc();
31
32 INLINE void set_to_default();
33 INLINE bool is_valid() const;
34
35 void set_dimensions(const LVector3f &dimensions);
36
37 LVector3f get_dimensions() const;
38
39public:
40 NxForceFieldShapeDesc *ptr() const { return (NxForceFieldShapeDesc *)&_desc; };
41 NxBoxForceFieldShapeDesc _desc;
42};
43
45
46#endif // PHYSXBOXFORCEFIELDSHAPEDESC_H
void set_to_default()
(re)sets the structure to the default.
bool is_valid() const
Returns true if the descriptor is valid.
void set_dimensions(const LVector3f &dimensions)
Sets the dimensions of the box.
LVector3f get_dimensions() const
Returns the dimensions of the box.
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.