//---------------------------------------------------------------------------- bool TriggerActor::IsPointIn (PX2::APoint point) { if (mAreaType == AT_SPHERE) { return InSphere<float>(point, mSphere); } else if (mAreaType == AT_BOX) { if (point.X()>=mBox.Min[0] && point.Y()>=mBox.Min[1] && point.Z()>=mBox.Min[2] && point.X()<=mBox.Max[0] && point.Y()<=mBox.Max[1] && point.Z()<=mBox.Max[2]) return true; } return false; }
//---------------------------------------------------------------------------- bool CurveCtrl::SetOutVal (PX2::APoint outVal) { mOutVal = APoint(mInVal, outVal.Y(), outVal.Z()); return true; }