I am trying to program a game and am having trouble with collision detection. I am trying to get the "monsters" to chase the "knight" when the knight gets close. I am using Panda3D to run the game. I have three classes, the Knights Quest, monster, and wasdCamera.

I am having trouble once the collision detection takes place. Panda recognizes the collision, and prints the monster number the knight is in collision with, but I don't know how to get the monster to actually chase the knight.

Then eventually I want the knight to be able to attack the monsters and make it to the end of the maze and find the holy grail!

It won't let me attach my .zip file... but I still need some help!!

8 Years
Discussion Span
Last Post by shadwickman

I've used Panda3D, but never much more than tweaking shaders and such. However, it sounds like you're going to need to make a basic algorithm to calculate the movement for the monster, then apply it to the monster so that it continually finds a path leading to the knight and attempts to follow it. Like paulthom said though, for the part dealing with Panda3D methods/classes, you're better off dealing with the forums made specifically for this 3D engine.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.