UE虚幻4虚幻5动画蓝图调试,触发FellOutOfWorld事件和打印输出,继续DeepSeek输出

找到了一个pdf,本来想写个翻译的,但还是算了,大概看了下,这类文档很全面,内容很多,但都不是我要的,我想要一个动画蓝图,搜索Montage,或者Anim 只占了一行(几百页的PDF)的简单几个词语的描写

(这样的PDF有啥用??真的??有啥用??)

所以还是直接问问DeepSeek吧

PDF1,

默认的Actor,默认的Input Control 和默认的跌落事件


我是真的在Actor.cpp 找到了这个代码:

cpp 复制代码
bool AActor::CheckStillInWorld()
{
	if (IsPendingKill())
	{
		return false;
	}
	UWorld* MyWorld = GetWorld();
	if (!MyWorld)
	{
		return false;
	}

	// check the variations of KillZ
	AWorldSettings* WorldSettings = MyWorld->GetWorldSettings( true );

	if (!WorldSettings->bEnableWorldBoundsChecks)
	{
		return true;
	}

	if( GetActorLocation().Z < WorldSettings->KillZ )
	{
		UDamageType const* const DmgType = WorldSettings->KillZDamageType ? WorldSettings->KillZDamageType->GetDefaultObject<UDamageType>() : GetDefault<UDamageType>();
		FellOutOfWorld(*DmgType);
		return false;
	}
	// Check if box has poked outside the world
	else if( ( RootComponent != NULL ) && ( GetRootComponent()->IsRegistered() == true ) )
	{
		const FBox&	Box = GetRootComponent()->Bounds.GetBox();
		if(	Box.Min.X < -HALF_WORLD_MAX || Box.Max.X > HALF_WORLD_MAX ||
			Box.Min.Y < -HALF_WORLD_MAX || Box.Max.Y > HALF_WORLD_MAX ||
			Box.Min.Z < -HALF_WORLD_MAX || Box.Max.Z > HALF_WORLD_MAX )
		{
			UE_LOG(LogActor, Warning, TEXT("%s is outside the world bounds!"), *GetName());
			OutsideWorldBounds();

wo我的项目是这个值,看上挺大的数值,但是体感就是2~3秒,实际上距离floor没多远就触发死亡

参考

网页1

虚幻引擎(UE):【ue地编小白初级教程】第八节了解UE中比较重要的相关设置选项「虚幻引擎教学」_虚幻引擎UE培训

相关推荐
hresh32 分钟前
通辽宇宙知识库:从洗澡灵感到AI协作开发的全流程实践
aigc·ai编程·deepseek
道可云10 小时前
道可云人工智能每日资讯|北京农业人工智能与机器人研究院揭牌
人工智能·机器人·ar·deepseek
webmote3312 小时前
DeepSeek私域数据训练之封装Anything LLM的API 【net 9】
.net·api·deepseek
小虚竹14 小时前
1.6万字测评:deepseek-r1-0528横向对比 gemini-2.5-pro-0506和claude4
claude·gemini·deepseek
程序员海军16 小时前
从懵懂到落地:记录我们第一次成功将大模型“塞”进业务的曲折历程
前端·后端·deepseek
BIBI204917 小时前
VsCode 安装 Cline 插件并使用免费模型(例如 DeepSeek)
vscode·deepseek·cline
零道19 小时前
我用了一周时间,复刻了一个Bolt new
ai编程·全栈·deepseek
奔跑吧邓邓子1 天前
DeepSeek 赋能车路协同:智能交通的破局与重构
人工智能·应用·车路协同·智能交通·deepseek
理论最高的吻1 天前
本地部署 DeepSeek R1(最新)【从下载、安装、使用和调用一条龙服务】
ai·本地部署·ollama·deepseek
用户065936394142 天前
小升级,大爆发!DeepSeek-R1-0528悄然上线却引发全球开发者狂热
deepseek