//SceneComponent.h
class ENGINE_API USceneComponent : public UActorComponent
{
/** Calculate the bounds of the component. Default behavior is a bounding box/sphere of zero size. */
virtual FBoxSphereBounds CalcBounds(const FTransform& LocalToWorld) const;
/** Calculate the local bounds of the component. Default behavior is calling CalcBounds with an identity transform. */
virtual FBoxSphereBounds CalcLocalBounds() const
{
return CalcBounds(FTransform::Identity);
}
/** 计算组件的边界。 默认行为是大小为零的边界框/球体。 */
CalcBounds带参数
/** 计算组件的局部边界。 默认行为是使用恒等变换调用 CalcBounds。 */
CalcBounds不带参数
计算组件边界
本文介绍了一个虚拟函数CalcBounds,用于计算组件的边界,默认情况下返回零大小的边界框/球体。同时还提供了一个 CalcLocalBounds 函数,它通过恒等变换调用 CalcBounds 来计算组件的局部边界。
4863

被折叠的 条评论
为什么被折叠?



