Hello everyone, I am having a small problem registering collisions with terrain that is present in the game scene. I have a class and it has done the following in its Init function which is called on initialization:
And in NodeCollision:
[code] void NodeCollision(StringHash eventType, VariantMap& eventData)
{
Node@ otherBody = eventData[“OtherNode”].GetNode();
Print("Collided with " + otherBody.name);
}[/code]
Now the function prints out when it collides with nodes it hits but for some reason does not print out anything hit if it comes in contact with the terrain. It is worth noting the terrain is large and there are multiple nodes for it however each section has a Terrain component, a Collision Shape of Terrain, and a RigidBody that is on collision layer 1 and has a mask of -1 which is consistent with all other objects being made.
Any suggestions on why it is not reporting a terrain collision? The class I’m speaking of manages a scriptObject which also has a rigid body and collision shape so the nodeCollision should be handled when it comes in contact with anything.