1/*
2 * Copyright (c) 2008-2015, NVIDIA CORPORATION. All rights reserved.
3 *
4 * NVIDIA CORPORATION and its licensors retain all intellectual property
5 * and proprietary rights in and to this software, related documentation
6 * and any modifications thereto. Any use, reproduction, disclosure or
7 * distribution of this software and related documentation without an express
8 * license agreement from NVIDIA CORPORATION is strictly prohibited.
9 */
10// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.
11// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.
12
13
14#ifndef PX_PHYSICS_NX_RIGIDSTATIC
15#define PX_PHYSICS_NX_RIGIDSTATIC
16/** \addtogroup physics
17@{
18*/
19
20#include "PxPhysXConfig.h"
21#include "PxRigidActor.h"
22
23#ifndef PX_DOXYGEN
24namespace physx
25{
26#endif
27
28/**
29\brief PxRigidStatic represents a static rigid body simulation object in the physics SDK.
30
31PxRigidStatic objects are static rigid physics entities. They shall be used to define solid objects which are fixed in the world.
32
33<h3>Creation</h3>
34Instances of this class are created by calling #PxPhysics::createRigidStatic() and deleted with #release().
35
36<h3>Visualizations</h3>
37\li #PxVisualizationParameter::eACTOR_AXES
38
39@see PxRigidActor PxPhysics.createRigidStatic() release()
40*/
41
42class PxRigidStatic : public PxRigidActor
43{
44public:
45 virtual const char* getConcreteTypeName() const { return "PxRigidStatic"; }
46
47protected:
48 PX_INLINE PxRigidStatic(PxType concreteType, PxBaseFlags baseFlags) : PxRigidActor(concreteType, baseFlags) {}
49 PX_INLINE PxRigidStatic(PxBaseFlags baseFlags) : PxRigidActor(baseFlags) {}
50 virtual ~PxRigidStatic() {}
51 virtual bool isKindOf(const char* name) const { return !strcmp("PxRigidStatic", name) || PxRigidActor::isKindOf(name); }
52
53};
54
55PX_DEPRECATED PX_INLINE PxRigidStatic* PxActor::isRigidStatic() { return is<PxRigidStatic>(); }
56PX_DEPRECATED PX_INLINE const PxRigidStatic* PxActor::isRigidStatic() const { return is<PxRigidStatic>(); }
57
58
59#ifndef PX_DOXYGEN
60} // namespace physx
61#endif
62
63/** @} */
64#endif
65