engine
 
载入中...
搜索中...
未找到
函数
MovementBaseUtility 命名空间参考

MovementBaseUtility provides utilities for working with movement bases, for which we may need relative positioning info. 更多...

函数

ENGINE_API void AddTickDependency (FTickFunction &BasedObjectTick, UPrimitiveComponent *NewBase)
 Ensure that BasedObjectTick ticks after NewBase
 
ENGINE_API FVector GetMovementBaseTangentialVelocity (const UPrimitiveComponent *MovementBase, const FName BoneName, const FVector &WorldLocation)
 Get the tangential velocity at WorldLocation for the given component.
 
ENGINE_API bool GetMovementBaseTransform (const UPrimitiveComponent *MovementBase, const FName BoneName, FVector &OutLocation, FQuat &OutQuat)
 Get the transforms for the given MovementBase, optionally at the location of a bone. 更多...
 
ENGINE_API FVector GetMovementBaseVelocity (const UPrimitiveComponent *MovementBase, const FName BoneName)
 Get the velocity of the given component, first checking the ComponentVelocity and falling back to the physics velocity if necessary.
 
ENGINE_API bool IsDynamicBase (const UPrimitiveComponent *MovementBase)
 Determine whether MovementBase can possibly move.
 
ENGINE_API bool IsSimulatedBase (const UPrimitiveComponent *MovementBase)
 Determine whether MovementBase is simulating or attached to a simulating object.
 
ENGINE_API void RemoveTickDependency (FTickFunction &BasedObjectTick, UPrimitiveComponent *OldBase)
 Remove tick dependency of BasedObjectTick on OldBase
 
FORCEINLINE bool UseRelativeLocation (const UPrimitiveComponent *MovementBase)
 Determine if we should use relative positioning when based on a component (because it may move).
 

详细描述

MovementBaseUtility provides utilities for working with movement bases, for which we may need relative positioning info.

函数说明

◆ GetMovementBaseTransform()

ENGINE_API bool MovementBaseUtility::GetMovementBaseTransform ( const UPrimitiveComponent *  MovementBase,
const FName  BoneName,
FVector &  OutLocation,
FQuat &  OutQuat 
)

Get the transforms for the given MovementBase, optionally at the location of a bone.

Returns false if MovementBase is nullptr, or if BoneName is not a valid bone.