Game Development Community

Problem ContainerRayCast

by KLEBER SEIXAS · in General Discussion · 09/10/2007 (1:22 pm) · 1 replies

The ContainerRayCast this not finding my objects staticShape, but finds player, cams, etc. it crosses shape and goes to find terrain. will be some error to creates it them? below goes a piece of my script goes.

datablock StaticShapeData(Mao4Data)
{
 shapeFile = "~/data/modelos/Player/mao04.dts";
 className = "Mao";
 category = "Mao";
};

function StaticShapeData::Create(%block)
{
 %obj = new StaticShape(){
           datablock = %block;
        };
 return(%obj);
}

function criaMao(%block,%poss)
{
 %player = new StaticShape(%block)
            {
             datablock = %block;
            };
 MissionCleanup.add(%player);
 %player.setScale("0.01 0.01 0.01");
 %player.setTransform(%poss);
 return %player;
}

#1
10/12/2007 (12:18 am)
Have you checked that your shape has a collision box around? If not, the ray would straightly go through without a hit.