Skip to content

Commit 429035e

Browse files
committed
up
1 parent 6cdae81 commit 429035e

File tree

7 files changed

+10
-6
lines changed

7 files changed

+10
-6
lines changed

Content/Entity/GameEntity_BP.uasset

1.49 KB
Binary file not shown.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
KBEngine_ue4_demo(UE4.14.3)
1+
KBEngine_ue4_demo(UE4.15.1)
22
=============
33

44
## This client-project is written for KBEngine(a MMOG engine of server)

README_CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
KBEngine_ue4_demo(UE4.14.3)
1+
KBEngine_ue4_demo(UE4.15.1)
22
=============
33

44
## 本项目作为KBEngine服务端引擎的客户端演示而写

Source/kbengine_ue4_demo/ue4_scripts/GameEntity.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void AGameEntity::updateLocation(float DeltaTime)
7070
SetActorLocation(targetLocation);
7171
}
7272

73-
FaceRotation(targetRotator);
73+
FaceRotation(targetRotator, DeltaTime);
7474
}
7575

7676
// Called every frame

Source/kbengine_ue4_demo/ue4_scripts/GameModeWorld.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,11 @@ void AGameModeWorld::set_direction_Implementation(const UKBEventData* pEventData
206206
AGameEntity* pAGameEntity = findGameEntity(pData->entityID);
207207

208208
if (pAGameEntity)
209-
pAGameEntity->setTargetRotator(FRotator(pData->direction.Y, pData->direction.Z, pData->direction.X));
209+
{
210+
FRotator targetRotator;
211+
KBDir2UE4Dir(targetRotator, pData->direction);
212+
pAGameEntity->setTargetRotator(targetRotator);
213+
}
210214
}
211215

212216
void AGameModeWorld::updatePosition_Implementation(const UKBEventData* pEventData)

kbengine_ue4_demo.uproject

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"FileVersion": 3,
3-
"EngineAssociation": "{3D6077BB-4B9F-EF15-AB7D-6A8246312144}",
3+
"EngineAssociation": "{04437155-46AC-D607-DE13-84867507ED2B}",
44
"Category": "",
55
"Description": "",
66
"Modules": [

0 commit comments

Comments
 (0)