Add Tag to PhysicalMaterial for physical surfaces tagging
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
#include "Types.h"
|
#include "Types.h"
|
||||||
#include "Engine/Core/ISerializable.h"
|
#include "Engine/Core/ISerializable.h"
|
||||||
|
#include "Engine/Level/Tags.h"
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Physical materials are used to define the response of a physical object when interacting dynamically with the world.
|
/// Physical materials are used to define the response of a physical object when interacting dynamically with the world.
|
||||||
@@ -69,6 +70,12 @@ public:
|
|||||||
API_FIELD(Attributes="EditorOrder(10), EditorDisplay(\"Physical Material\")")
|
API_FIELD(Attributes="EditorOrder(10), EditorDisplay(\"Physical Material\")")
|
||||||
float Density = 1000.0f;
|
float Density = 1000.0f;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Physical material tag used to identify it (eg. `Surface.Wood`). Can be used to play proper footstep sounds when walking over object with that material.
|
||||||
|
/// </summary>
|
||||||
|
API_FIELD(Attributes="EditorOrder(100), EditorDisplay(\"Physical Material\")")
|
||||||
|
Tag Tag;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the PhysX material.
|
/// Gets the PhysX material.
|
||||||
|
|||||||
Reference in New Issue
Block a user