UDN
Search public documentation:
ChangingUnitsCH
English Translation
日本語訳
한국어
Interested in the Unreal Engine?
Visit the Unreal Technology site.
Looking for jobs and company info?
Check out the Epic games site.
Questions about support via UDN?
Contact the UDN Staff
日本語訳
한국어
Interested in the Unreal Engine?
Visit the Unreal Technology site.
Looking for jobs and company info?
Check out the Epic games site.
Questions about support via UDN?
Contact the UDN Staff
改变虚幻单位
概述
目前的游戏标度
改变
导入
UE3把一个Max Unit(最大单位)当做一个虚幻单位,无论在Max中设置单位的原始长度是多少。游戏性
需要改变您的 Scout.uc子类和您的 Pawn.uc子类中存在的一些关于游戏性的属性。在defaultgame.ini文件中,您可以为您的标度设置适当的重力。在您的 defaultengine.ini文件中,您可以指定您的游戏所使用的scout子类。 您修要改变很多使用脚本及C++定义的默认属性,比如MaxStepHeight
、 MaxJumpHeight
、 MaxOutOfWaterStepHeight
、 CrouchHeight
、 CrouchRadius
、 GroundSpeed
、 AirSpeed
、 JumpZ
、 DefaultGravityZ
、 GroundSpeed
等。
路径
对于路径,在Scout类中有PathSize
、 TestJumpZ
等。
网络
为了节约带宽,网络代码把位置值量化为整型的虚幻单位。 对于新的标度,需要对量子化过程进行适当的调整。音频
需要修改UnAudio.h文件中的音频距离因数: In ALAudioDevice.h (line 16):// 2 UU == 1" // <=> 1 UU == 0.0127 m #define AUDIO_DISTANCE_FACTOR ( 0.0127f )