找到了一個pdf,本來想寫個翻譯的,但還是算了,大概看了下,這類文檔很全面,內容很多,但都不是我要的,我想要一個動畫藍圖,搜索Montage,或者Anim 只占了一行(幾百頁的PDF)的簡單幾個詞語的描寫
(這樣的PDF有啥用??真的??有啥用??)
所以還是直接問問DeepSeek吧
PDF1,
默認的Actor,默認的Input Control 和默認的跌落事件
我是真的在Actor.cpp 找到了這個代碼:
bool AActor::CheckStillInWorld()
{if (IsPendingKill()){return false;}UWorld* MyWorld = GetWorld();if (!MyWorld){return false;}// check the variations of KillZAWorldSettings* 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 worldelse 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培訓