update 1.2.0
This commit is contained in:
@@ -112,7 +112,7 @@ namespace EmeraldAI
|
||||
if (hit.collider != null)
|
||||
{
|
||||
//Get the tag of detected raycast collider.
|
||||
var StepData = FootstepSurfaces.Find(step => step.SurfaceType == FootstepSurfaceObject.SurfaceTypes.Tag && step.SurfaceTag == hit.collider.tag);
|
||||
var StepData = FootstepSurfaces.Find(step => step.SurfaceType == FootstepSurfaceObject.SurfaceTypes.Tag && hit.collider.CompareTag(step.SurfaceTag));
|
||||
|
||||
//If the StepData is null, check for a terrain. If a terrain is found, get the most dominant texture for the footstep's position.
|
||||
//Use this texture to determine the Surface Data that should be used for this footstep.
|
||||
|
||||
Reference in New Issue
Block a user