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_CLOTH_READ_DATA
15#define PX_PHYSICS_NX_CLOTH_READ_DATA
16
17#include "PxPhysXConfig.h"
18
19#if PX_USE_CLOTH_API
20
21/** \addtogroup cloth
22 @{
23*/
24
25#include "PxLockedData.h"
26
27#ifndef PX_DOXYGEN
28namespace physx
29{
30#endif
31
32struct PxClothParticle;
33
34/**
35\brief Data layout descriptor for reading cloth data from the SDK.
36@see PxCloth.lockParticleData()
37*/
38class PxClothParticleData : public PxLockedData
39{
40public:
41 /**
42 \brief Particle position and mass data.
43 @see PxCloth.getNbParticles()
44 */
45 PxClothParticle* particles;
46
47 /**
48 \brief Particle position and mass data from the second last iteration.
49 \details Can be used together with #particles and #PxCloth.getPreviousTimeStep() to compute particle velocities.
50 */
51 PxClothParticle* previousParticles;
52};
53
54#ifndef PX_DOXYGEN
55} // namespace physx
56#endif
57
58/** @} */
59
60#endif // PX_USE_CLOTH_API
61
62#endif
63