forked from UE4-OceanProject/OceanProject
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a compatibility update, tested in 4.9p4.
- Loading branch information
Showing
25 changed files
with
360 additions
and
320 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+156 KB
(130%)
Content/ShipsAndExamples/CustomThirdPerson/Blueprints/TP_VehicleController.uasset
Binary file not shown.
Binary file modified
BIN
+116 KB
(110%)
Content/ShipsAndExamples/CustomThirdPerson/Blueprints/ThirdPersonCharacter.uasset
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file modified
BIN
+1020 KB
(100%)
Plugins/OceanPlugin/Binaries/Win64/UE4Editor-OceanPlugin.pdb
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
97 changes: 97 additions & 0 deletions
97
Plugins/OceanPlugin/Source/OceanPlugin/Classes/BuoyantDestructibleComponent.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
/*================================================= | ||
* FileName: BuoyantDestructibleComponent.h | ||
* | ||
* Created by: TK-Master | ||
* Project name: OceanProject | ||
* Unreal Engine version: 4.9 | ||
* Created on: 2015/08/27 | ||
* | ||
* Last Edited on: 2015/08/28 | ||
* Last Edited by: TK-Master | ||
* | ||
* ------------------------------------------------- | ||
* For parts referencing UE4 code, the following copyright applies: | ||
* Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. | ||
* | ||
* Feel free to use this software in any commercial/free game. | ||
* Selling this as a plugin/item, in whole or part, is not allowed. | ||
* See "OceanProject\License.md" for full licensing details. | ||
* =================================================*/ | ||
|
||
#pragma once | ||
|
||
#include "OceanManager.h" | ||
#include "OceanPluginPrivatePCH.h" | ||
#include "BuoyantDestructibleComponent.generated.h" | ||
|
||
UCLASS(ClassGroup = Physics, hidecategories = (Object, Mesh, "Components|SkinnedMesh", Mirroring, Activation, "Components|Activation"), config = Engine, editinlinenew, meta = (BlueprintSpawnableComponent)) | ||
class UBuoyantDestructibleComponent : public UDestructibleComponent | ||
{ | ||
GENERATED_UCLASS_BODY() | ||
|
||
protected: | ||
virtual void TickComponent(float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction) override; | ||
virtual void InitializeComponent() override; | ||
|
||
private: | ||
float _SignedRadius; | ||
float _baseAngularDamping; | ||
float _baseLinearDamping; | ||
|
||
public: | ||
UPROPERTY(EditAnywhere, AdvancedDisplay, BlueprintReadWrite, Category = "Buoyancy Settings") | ||
AOceanManager* OceanManager; | ||
|
||
/* Density of each chunk */ | ||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Buoyancy Settings") | ||
float ChunkDensity; | ||
|
||
/* Density of water */ | ||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Buoyancy Settings") | ||
float FluidDensity; | ||
|
||
/* Linear damping when chunk is in fluid */ | ||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Buoyancy Settings") | ||
float FluidLinearDamping; | ||
|
||
/* Angular damping when chunk is in fluid */ | ||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Buoyancy Settings") | ||
float FluidAngularDamping; | ||
|
||
UPROPERTY(EditAnywhere, AdvancedDisplay, BlueprintReadWrite, Category = "Buoyancy Settings") | ||
FVector VelocityDamper; | ||
|
||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Buoyancy Settings") | ||
bool ClampMaxVelocity; | ||
|
||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Buoyancy Settings") | ||
float MaxUnderwaterVelocity; | ||
|
||
/* Radius of the test point */ | ||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Buoyancy Settings") | ||
float TestPointRadius; | ||
|
||
UPROPERTY(EditAnywhere, BlueprintReadWrite, AdvancedDisplay, Category = "Buoyancy Settings") | ||
bool DrawDebugPoints; | ||
|
||
UPROPERTY(EditAnywhere, BlueprintReadWrite, AdvancedDisplay, Category = "Buoyancy Settings") | ||
bool EnableWaveForces; | ||
|
||
UPROPERTY(EditAnywhere, BlueprintReadWrite, AdvancedDisplay, Category = "Buoyancy Settings") | ||
float WaveForceMultiplier; | ||
|
||
/* | ||
* Sets the mass-normalized kinetic energy threshold below which an actor may go to sleep. | ||
* Default physx value is ~50.0f (we set it 0 to avoid weird sleeping chunks on water). | ||
*/ | ||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Advanced") | ||
float ChunkSleepThreshold; | ||
|
||
/* | ||
* Sets the mass-normalized kinetic energy threshold below which an actor may participate in stabilization. | ||
* (This value has no effect if PxSceneFlag::eENABLE_STABILIZATION was not enabled on the PxSceneDesc) | ||
*/ | ||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Advanced") | ||
float ChunkStabilizationThreshold; | ||
|
||
}; |
40 changes: 0 additions & 40 deletions
40
Plugins/OceanPlugin/Source/OceanPlugin/Classes/CustomFunctionLibrary.h
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.