Panda3D

Loading...
Searching...
No Matches
physxCapsuleForceFieldShapeDesc.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 physxCapsuleForceFieldShapeDesc.h
10 * @author enn0x
11 * @date 2009-11-06
12 */
13
14#ifndef PHYSXCAPSULEFORCEFIELDSHAPEDESC_H
15#define PHYSXCAPSULEFORCEFIELDSHAPEDESC_H
16
17#include "pandabase.h"
18
19#include "physxForceFieldShapeDesc.h"
20#include "physx_includes.h"
21
22/**
23 * Descriptor for a capsule force field shape.
24 */
25 class EXPCL_PANDAPHYSX PhysxCapsuleForceFieldShapeDesc : public PhysxForceFieldShapeDesc {
26
27PUBLISHED:
28 INLINE PhysxCapsuleForceFieldShapeDesc();
29 INLINE ~PhysxCapsuleForceFieldShapeDesc();
30
31 INLINE void set_to_default();
32 INLINE bool is_valid() const;
33
34 void set_radius(float radius);
35 void set_height(float height);
36
37 float get_radius() const;
38 float get_height() const;
39
40 public:
41 NxForceFieldShapeDesc *ptr() const { return (NxForceFieldShapeDesc *)&_desc; };
42 NxCapsuleForceFieldShapeDesc _desc;
43};
44
45#include "physxCapsuleForceFieldShapeDesc.I"
46
47#endif // PHYSXCAPSULEFORCEFIELDSHAPEDESC_H
PhysxCapsuleForceFieldShapeDesc::is_valid
bool is_valid() const
Returns true if the descriptor is valid.
Definition physxCapsuleForceFieldShapeDesc.I:45
PhysxCapsuleForceFieldShapeDesc::set_to_default
void set_to_default()
(re)sets the structure to the default.
Definition physxCapsuleForceFieldShapeDesc.I:35
PhysxCapsuleForceFieldShapeDesc::get_radius
float get_radius() const
The radius of the capsule's hemispherical ends and its trunk.
Definition physxCapsuleForceFieldShapeDesc.cxx:38
PhysxCapsuleForceFieldShapeDesc::set_height
void set_height(float height)
Sets the distance between the two hemispherical ends of the capsule.
Definition physxCapsuleForceFieldShapeDesc.cxx:29
PhysxCapsuleForceFieldShapeDesc::get_height
float get_height() const
The distance between the two hemispherical ends of the capsule.
Definition physxCapsuleForceFieldShapeDesc.cxx:47
PhysxCapsuleForceFieldShapeDesc::set_radius
void set_radius(float radius)
Sets the radius of the capsule's hemispherical ends and its trunk.
Definition physxCapsuleForceFieldShapeDesc.cxx:20
pandabase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
physxCapsuleForceFieldShapeDesc.I
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
physxForceFieldShapeDesc.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
physx_includes.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.