I’m trying to create a collision sphere around a model so that I can eventually set up mouse picking wtih a collision ray. I added a collision tag to the beginning of the egg file as follows
<Group> BasicKid {
<Collide> BasicKid {Sphere descend}
<Dart> { 1 }
<Group> groundPlane_transform {
}
<Group> group {
<Group> "BasicKid_v001:default1" {
<VertexPool> "BasicKid_v001:defaultShape.verts" {
<Vertex> 0 {
-0.07105 1.5 -0.079794
<UV> { 0.233073 0.0620905 }
<Normal> { -0.502431 0.040969 -0.863646 }
<RGBA> { 1 1 1 1 }
// Neck:1
}
I put the tag immediately under the group tag, like it is in the maze.egg file for the ball in maze tutorial. The problem I’m running into is that when I use
print(self.actor.find(“BasicKid”)
or
print(self.actor.find("**/BasicKid")
the console prints out not found.
As you can see in the egg file, the group definitely exists. I don’t understand why the .find method isn’t finding that group. Any ideas what I’m doing wrong?