Hello everyone
I have a little problem with XSI Behavior. CheckSphereIntersection
doesn't work as it should. Maybe someone had a similar problem and can
help me. Here is the problem description:
CheckSphereIntersection only returns true when the actor and the house
are inside the specified radius at the simulation start. There isn't
any correct check if he runs into the radius later in the simulation.
This function is called from the hfsm and loops with a ping.
So as soon as the actor comes in the range of a house there should be
returned TRUE from the CheckSphereIntersection function.
function SearchHouses(actor)
{
var cm = world.GetEnvModel();
var center = actor.GetRootNode().GetGlobalTransform().position;
var result = new DrvSphereResult();
if(cm.CheckSphereIntersection(center, HAUS_SEARCH_RADIUS, result) ==
TRUE)
{
var node = result.model.GetSGNode();
return node;
}
}
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi