Dear Epic,
I have setup a code project based upon the third person c++ template. I have added a class, and tried to wrap my head around adding physical audio to it. I know it is experimental but as it has version 1.0 I guess some basic stuff should work.
I’m a newbie in Unreal 4 so please, if anyone can tell me: What are the steps that I need to go through in the Editor and Visual Studio or XCode (doesnt matter which) to get the header files correctly linked, along with any other components, into my project?
I also guess the developer of the plugin has a Unreal project available, if he or she could please share that would be great. It would be much easier to modify a working example than beginning from scratch.
I have looked at the docs here but I’m simply stuck
https://docs.unrealengine.com/latest/INT/API/Plugins/Phya/index.html
Best regards,
Thomas
actually, I built my question on this question whihch is similar, perhaps this is part of the solution?
I previously added the line to my Game.Build.cs file and I got some error but now it compiles :
PublicDependencyModuleNames.Add("Phya");
I still don’t get how to setup the plugin though; I think I have understood the sequence from the Unreal Phya docs, as follows:
//creating the instance
//https://docs.unrealengine.com/latest/INT/API/Runtime/CoreUObject/UObject/StaticConstructObject/index.html
UObject * StaticConstructObject
(
UClass * Class,
UObject * InOuter,
FName Name,
EObjectFlags SetFlags,
UObject * Template,
bool bCopyTransientsFromClassDefaults,
struct FObjectInstancingGraph * InstanceGraph
)
//Gives game-specific ability to handle all physics collisions in one place.
//This is a good place to play sounds and spawn effects, as it does not require special object-specific code.
virtual void HandlePhysicsCollisions
(
const TArray < FCollisionNotifyInfo > & PendingCollisionNotifies
)
//Called after collision handler is allocated for a world.
virtual void InitCollisionHandler()
Is this correct?
Just so I know I’m on the right track.
Thanks,
Thomas