Game Development Community

SOLVED] Weird enemy collision

by Ryan Miller · in Torque X Platformer Kit · 02/20/2008 (11:06 am) · 1 replies

I just created a new enemy, based on the Drill from the demo. When the game starts it falls to the floor and moves left as it should, but the _onEnter never fires when it moves over a turn around trigger I created for it based on the DrillTurnAroundTriggerComponent. All the class names and instance names have been updated to my own class name and instance names (there's no instances of the string 'Drill' or 'drill' in my code).

When it reaches the edge of the platform I created it should run into a wall and stop, but it doesn't, it goes through the wall. So walls or turn around triggers don't stop it. I tried creating another object with the SolidPlatformComponent and this time it went over the short wall I created. I made the wall higher and it passes right through. Any ideas?

thanks!

About the author

Recent Threads

  • Units in TXB?

  • #1
    02/20/2008 (12:37 pm)
    I figured this out. I had previously added the Hazard component to my new enemy, I removed it and now it works.