ForceFieldActor.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2008-2017, NVIDIA CORPORATION.  All rights reserved.
00003  *
00004  * NVIDIA CORPORATION and its licensors retain all intellectual property
00005  * and proprietary rights in and to this software, related documentation
00006  * and any modifications thereto.  Any use, reproduction, disclosure or
00007  * distribution of this software and related documentation without an express
00008  * license agreement from NVIDIA CORPORATION is strictly prohibited.
00009  */
00010 
00011 
00012 #ifndef FORCE_FIELD_ACTOR_H
00013 #define FORCE_FIELD_ACTOR_H
00014 
00015 #include "Apex.h"
00016 
00017 
00018 namespace nvidia
00019 {
00020 namespace apex
00021 {
00022 
00023 
00024 PX_PUSH_PACK_DEFAULT
00025 
00026 class ForceFieldAsset;
00027 class ForceFieldAssetParams;
00028 
00032 class ForceFieldActor : public Actor
00033 {
00034 protected:
00035     virtual ~ForceFieldActor() {}
00036 
00037 public:
00041     virtual bool                    isEnable() = 0;
00042 
00047     virtual bool                    disable() = 0;
00048 
00053     virtual bool                    enable() = 0;
00054 
00058     virtual PxMat44                 getPose() const = 0;
00059 
00063     virtual void                    setPose(const PxMat44& pose) = 0;
00064 
00068     PX_DEPRECATED virtual float     getScale() const = 0;
00069 
00073     PX_DEPRECATED virtual void      setScale(float scale) = 0;
00074 
00078     PX_DEPRECATED virtual float     getCurrentScale() const = 0;
00079 
00083     PX_DEPRECATED virtual void      setCurrentScale(float scale) = 0;
00084 
00085 
00086 
00090     virtual const char*             getName() const = 0;
00091 
00095     virtual void                    setName(const char* name) = 0;
00096 
00100     virtual void                    setStrength(const float strength) = 0;
00101 
00105     virtual void                    setLifetime(const float lifetime) = 0;
00106 
00111     PX_DEPRECATED virtual void      setFalloffType(const char* type) = 0;
00112 
00117     PX_DEPRECATED virtual void      setFalloffMultiplier(const float multiplier) = 0;
00118 
00122     virtual ForceFieldAsset*        getForceFieldAsset() const = 0;
00123 
00124 };
00125 
00126 PX_POP_PACK
00127 
00128 } // namespace apex
00129 } // namespace nvidia
00130 
00131 #endif // FORCE_FIELD_ACTOR_H

Generated on Tue Aug 1 2017 22:44:02

Copyright © 2012-2017 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved.