Panda3D

Loading...
Searching...
No Matches
physxSphereShapeDesc.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 physxSphereShapeDesc.h
10 * @author enn0x
11 * @date 2009-09-11
12 */
13
14#ifndef PHYSXSPHERESHAPEDESC_H
15#define PHYSXSPHERESHAPEDESC_H
16
17#include "pandabase.h"
18
19#include "physxShapeDesc.h"
20#include "physx_includes.h"
21
22/**
23 * Descriptor class for PhysxSphereShape.
24 */
25 class EXPCL_PANDAPHYSX PhysxSphereShapeDesc : public PhysxShapeDesc {
26
27PUBLISHED:
28 INLINE PhysxSphereShapeDesc();
29 INLINE ~PhysxSphereShapeDesc();
30
31 INLINE void set_to_default();
32 INLINE bool is_valid() const;
33
34 void set_radius(float radius);
35
36 float get_radius() const;
37
38 public:
39 NxShapeDesc *ptr() const { return (NxShapeDesc *)&_desc; };
40 NxSphereShapeDesc _desc;
41};
42
43#include "physxSphereShapeDesc.I"
44
45#endif // PHYSXSPHERESHAPEDESC_H
PhysxSphereShapeDesc::get_radius
float get_radius() const
Radius of shape.
Definition physxSphereShapeDesc.cxx:29
PhysxSphereShapeDesc::set_to_default
void set_to_default()
(re)sets the structure to the default.
Definition physxSphereShapeDesc.I:35
PhysxSphereShapeDesc::is_valid
bool is_valid() const
Returns true if the descriptor is valid.
Definition physxSphereShapeDesc.I:45
PhysxSphereShapeDesc::set_radius
void set_radius(float radius)
Radius of shape.
Definition physxSphereShapeDesc.cxx:20
pandabase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
physxShapeDesc.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
physxSphereShapeDesc.I
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
physx_includes.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.