1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- #pragma once
- #include "AkInclude.h"
- #include "AkAcousticTexture.h"
- #include "AkGeometryData.generated.h"
- class UPhysicalMaterial;
- USTRUCT()
- struct FAkAcousticSurface
- {
- GENERATED_BODY()
- UPROPERTY()
- uint32 Texture = AK_INVALID_UNIQUE_ID;
- UPROPERTY(DisplayName = "Transmission Loss")
- float Occlusion = .0f;
- UPROPERTY()
- FString Name;
- };
- USTRUCT()
- struct FAkTriangle
- {
- GENERATED_BODY()
- UPROPERTY()
- uint16 Point0 = 0;
- UPROPERTY()
- uint16 Point1 = 0;
- UPROPERTY()
- uint16 Point2 = 0;
- UPROPERTY()
- uint16 Surface = 0;
- };
- USTRUCT()
- struct FAkGeometryData
- {
- GENERATED_BODY()
- void Clear()
- {
- Vertices.Empty();
- Surfaces.Empty();
- Triangles.Empty();
- ToOverrideAcousticTexture.Empty();
- ToOverrideOcclusion.Empty();
- }
- UPROPERTY()
- TArray<FVector> Vertices;
- UPROPERTY()
- TArray<FAkAcousticSurface> Surfaces;
- UPROPERTY()
- TArray<FAkTriangle> Triangles;
- UPROPERTY()
- TArray<UPhysicalMaterial*> ToOverrideAcousticTexture;
- UPROPERTY(DisplayName = "To Override Transmission Loss")
- TArray<UPhysicalMaterial*> ToOverrideOcclusion;
- void AddBox(AkSurfIdx surfIdx, FVector center, FVector extent, FRotator rotation);
- void AddSphere(AkSurfIdx surfIdx, const FVector& Center, const float Radius, int32 NumSides, int32 NumRings);
- void AddCapsule(AkSurfIdx surfIdx, const FVector& Origin, const FVector& XAxis, const FVector& YAxis, const FVector& ZAxis, float Radius, float HalfHeight, int32 NumSides);
- };
|