diff options
| author | Marijn Tamis <[email protected]> | 2018-05-03 18:22:48 +0200 |
|---|---|---|
| committer | Marijn Tamis <[email protected]> | 2018-05-03 18:22:48 +0200 |
| commit | ca32c59a58d37c1822e185a2d5f3d0d3e8943593 (patch) | |
| tree | b06b9eec03f34344ef8fc31aa147b2714d3962ee /NvCloth/samples/SampleBase/scene/scenes/TeleportScene.h | |
| parent | Forced rename of platform folders in cmake dir. Git didn't pick this up before. (diff) | |
| download | nvcloth-ca32c59a58d37c1822e185a2d5f3d0d3e8943593.tar.xz nvcloth-ca32c59a58d37c1822e185a2d5f3d0d3e8943593.zip | |
NvCloth 1.1.4 Release. (24070740)
Diffstat (limited to 'NvCloth/samples/SampleBase/scene/scenes/TeleportScene.h')
| -rw-r--r-- | NvCloth/samples/SampleBase/scene/scenes/TeleportScene.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/NvCloth/samples/SampleBase/scene/scenes/TeleportScene.h b/NvCloth/samples/SampleBase/scene/scenes/TeleportScene.h new file mode 100644 index 0000000..668dfb0 --- /dev/null +++ b/NvCloth/samples/SampleBase/scene/scenes/TeleportScene.h @@ -0,0 +1,41 @@ +/* +* Copyright (c) 2008-2017, NVIDIA CORPORATION. All rights reserved. +* +* NVIDIA CORPORATION and its licensors retain all intellectual property +* and proprietary rights in and to this software, related documentation +* and any modifications thereto. Any use, reproduction, disclosure or +* distribution of this software and related documentation without an express +* license agreement from NVIDIA CORPORATION is strictly prohibited. +*/ + +#ifndef TELEPORT_SCENE_H +#define TELEPORT_SCENE_H + +#include "scene/Scene.h" +#include <foundation/PxVec3.h> + +class TeleportScene : public Scene +{ +public: + + TeleportScene(SceneController* sceneController): Scene(sceneController) {} + + virtual void Animate(double dt) override; + void initializeCloth(int index, physx::PxVec3 offset); + virtual void onInitialize() override; + void teleport(); + +private: + nv::cloth::Fabric* mFabric[1]; + nv::cloth::Solver* mSolver[1]; + ClothActor* mClothActor[1]; + + int mAttachmentVertices[1]; + physx::PxVec4 mAttachmentVertexOriginalPositions[1]; + + float mTime; + +}; + + +#endif
\ No newline at end of file |