载入中...
搜索中...
未找到
ClimbingRuntimeInternal.h 文件参考
#include <algorithm>
#include <charconv>
#include <chrono>
#include <cmath>
#include <limits>
#include <optional>
#include <utility>
#include "climbing/Climbing.h"

浏览源代码.

类

class  eve::climbing::runtime_detail::RuntimeTelemetryScope
 RuntimeTelemetryScope public API. 更多...
 
struct  eve::climbing::runtime_detail::WarpChannels
 WarpChannels public API. 更多...
 

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::climbing
 
namespace  eve::climbing::runtime_detail
 

函数

template<class T >
void eve::climbing::runtime_detail::boundedDebugPush (std::vector< T > &values, T value)
 Bounded debug push.
 
bool eve::climbing::runtime_detail::isFinite (float value)
 True when finite.
 
bool eve::climbing::runtime_detail::isFinite (Vec3 value)
 True when finite.
 
float eve::climbing::runtime_detail::lengthSquared (Vec3 value)
 Length squared.
 
float eve::climbing::runtime_detail::length (Vec3 value)
 Length.
 
Vec3 eve::climbing::runtime_detail::operator+ (Vec3 lhs, Vec3 rhs)
 Operator +.
 
Vec3 eve::climbing::runtime_detail::operator- (Vec3 lhs, Vec3 rhs)
 Operator -.
 
Vec3 eve::climbing::runtime_detail::operator* (Vec3 value, float scale)
 Operator *.
 
Vec3 eve::climbing::runtime_detail::normalizedHorizontal (Vec3 value)
 Normalized horizontal.
 
Vec3 eve::climbing::runtime_detail::clampMagnitude (Vec3 value, float maximum)
 Clamp magnitude.
 
WarpChannels eve::climbing::runtime_detail::activeWarpChannels (const ClimbingActionDefinition &action, float normalizedTime)
 Active warp channels.
 
bool eve::climbing::runtime_detail::activeBranchWindow (const ClimbingActionDefinition &action, float normalizedTime)
 Active branch window.
 
const std::string * eve::climbing::runtime_detail::activeBranchComboTag (const ClimbingActionDefinition &action, float normalizedTime)
 Optional combo tag. @borrowed From action; lifetime ends when the caller-owned action changes or is destroyed.
 
float eve::climbing::runtime_detail::activeContactWeight (const ClimbingActionDefinition &action, ClimbingContactTarget target, float normalizedTime)
 Active contact weight.
 
Vec3 eve::climbing::runtime_detail::terminalVelocityFor (const ClimbingActionDefinition &action, Vec3 actualDelta, float inverseDelta)
 Terminal velocity for.
 
float eve::climbing::runtime_detail::finalWarpWindowEnd (const ClimbingActionDefinition &action)
 Final warp window end.
 
float eve::climbing::runtime_detail::signedHorizontalAngle (Vec3 from, Vec3 to)
 Signed horizontal angle.
 
bool eve::climbing::runtime_detail::isActivePhase (ClimbingPhase phase)
 True when active phase.
 
bool eve::climbing::runtime_detail::isRuntimeProbeKind (ClimbingActionKind kind)
 True when runtime probe kind.
 
bool eve::climbing::runtime_detail::isObstacleProbeKind (ClimbingActionKind kind)
 True when obstacle probe kind.
 
bool eve::climbing::runtime_detail::isAnchorHangEnd (ClimbingActionKind kind)
 True when anchor hang end.
 
std::int64_t eve::climbing::runtime_detail::quantizeMillimeters (float value)
 Quantize millimeters.
 
const ClimbingActionDefinition * eve::climbing::runtime_detail::findAction (const ClimbingProfile &profile, std::string_view id)
 Optional action. @borrowed From profile; lifetime ends when the caller-owned profile changes or is destroyed.
 
bool eve::climbing::runtime_detail::isCandidateLess (const ClimbingCandidate &lhs, const ClimbingCandidate &rhs)
 True when candidate less.
 
bool eve::climbing::runtime_detail::containsAnyTag (const std::vector< std::string > &actionTags, const std::vector< std::string > &policyTags)
 True if any tag.
 
bool eve::climbing::runtime_detail::isActionEnabledForPose (const ClimbingProfile &profile, const ClimbingActionDefinition &action, const ClimbingPose &pose)
 True when action enabled for pose.
 
bool eve::climbing::runtime_detail::isProbeRecipeMatchingKind (const ClimbingActionDefinition &action)
 True when probe recipe matching kind.
 
std::optional< int > eve::climbing::runtime_detail::parseTagSelector (std::string_view selector, std::string_view prefix)
 Parse tag selector.
 
bool eve::climbing::runtime_detail::isSupportSelectorMatch (const ClimbingActionDefinition &action, int shapeTag, int materialId)
 True when support selector match.
 
std::int64_t eve::climbing::runtime_detail::weightedMillimeters (float value, std::int32_t weight)
 Weighted millimeters.
 
std::int64_t eve::climbing::runtime_detail::selectionCost (const ClimbingProfile &profile, const ClimbingActionDefinition &action, const ClimbingPose &pose, Vec3 targetDirection, Vec3 targetDelta, float heightError, float distance, std::int64_t stableTieBreak=0)
 Selection cost.
 

变量

constexpr float eve::climbing::runtime_detail::epsilon = 1e-5f
 
constexpr std::size_t eve::climbing::runtime_detail::maxDebugEntries = 64