![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 00002 /******************************************************************************* 00003 ** Copyright (c) 2009 MAK Technologies, Inc. 00004 ** All rights reserved. 00005 *******************************************************************************/ 00006 /******************************************************************************* 00007 * Copyright 2009 Autodesk, Inc. All rights reserved. 00008 * Use of this software is subject to the terms of the Autodesk license 00009 * agreement provided at the time of installation or download, or which otherwise 00010 * accompanies this software in either electronic or hard copy form. 00011 *******************************************************************************/ 00012 00013 00014 #pragma once 00015 00016 #include <bhaveSim/bhaveSimDefines.h> 00017 #include <bhaveSim/vrfEntityBot.h> 00018 00019 #include <kyruntime.h> 00020 00021 class DtVector; 00022 class DtVrfObject; 00023 class DtSimTask; 00024 class DtString; 00025 00026 namespace BHAVE 00027 { 00028 namespace Utils 00029 { 00030 #define BHAVEUTIL_MAX_DOWN_RAYCAST_DIST 50.f 00031 00041 bool DT_DLL_bhaveSim adjustAltitudeAboveGround(DtVector& location, double offset, double maxRaycastDist = BHAVEUTIL_MAX_DOWN_RAYCAST_DIST); 00042 00043 00046 bool DT_DLL_bhaveSim checkIsDestinationOnPathData(DtVrfObject* entity, const DtVector& dest); 00047 00048 00050 bool DT_DLL_bhaveSim checkIsDestinationNameOnPathData(DtVrfObject* entity, const DtString& wpName); 00051 00054 bool DT_DLL_bhaveSim checkIsRouteOnPathData(DtVrfObject* entity, const DtString& routeName); 00055 00057 bool DT_DLL_bhaveSim checkBhaveMovementConditionsOnEntity(DtVrfObject* entity, DtSimTask* msg) ; 00058 00060 bool DT_DLL_bhaveSim testIsOnPathData(DtVrfEntityBot* pEntity); 00061 00064 bool DT_DLL_bhaveSim testIsOnPathData(DtVrfEntityBot* pEntity, const Kaim::Vec3f & position); 00065 00071 double DT_DLL_bhaveSim getZComponentOnPathData(DtVrfEntityBot* entity, const Kaim::Vec3f & position); 00072 00078 double DT_DLL_bhaveSim getZComponentOnPathData(Kaim::Database* entity, const Kaim::Vec3f & position); 00079 00080 00081 } 00082 } 00083