HitBox added. acceleration of collision detection in 20 times.

master
Vectozavr 2021-11-04 03:00:19 +07:00
parent 6bc5c7dd1f
commit e347215f11
3 changed files with 20 additions and 1 deletions

View File

@ -26,6 +26,8 @@ add_executable(shooter
Shooter.cpp
Shooter.h
ShooterConsts.h
ShooterMsgType.h
ShooterMsgType.cpp
# 3d engine:
engine/Consts.h
engine/Vec4D.h
@ -46,6 +48,8 @@ add_executable(shooter
engine/utils/Log.cpp
engine/utils/Time.h
engine/utils/Time.cpp
engine/utils/Timer.cpp
engine/utils/Timer.h
engine/ResourceManager.h
engine/ResourceManager.cpp
engine/World.h
@ -73,6 +77,8 @@ add_executable(shooter
engine/physics/RigidBody.cpp
engine/physics/RigidBody.h
engine/physics/Simplex.h
engine/physics/HitBox.cpp
engine/physics/HitBox.h
engine/Object.cpp
engine/Object.h
engine/gui/Button.cpp
@ -91,7 +97,12 @@ add_executable(shooter
engine/network/UDPConnection.h
engine/network/UDPSocket.cpp
engine/network/UDPSocket.h
engine/SoundController.cpp engine/SoundController.h ShooterMsgType.h ShooterMsgType.cpp engine/animation/AAttractToPoint.h engine/animation/ARotateRelativePoint.h engine/animation/ARotateLeft.h engine/utils/Timer.cpp engine/utils/Timer.h engine/physics/HitBox.cpp engine/physics/HitBox.h)
engine/SoundController.cpp
engine/SoundController.h
engine/animation/AAttractToPoint.h
engine/animation/ARotateRelativePoint.h
engine/animation/ARotateLeft.h
)
if(APPLE OR UNIX)
include_directories(/usr/local/include)

View File

@ -177,6 +177,7 @@
<ClCompile Include="engine\network\UDPSocket.cpp" />
<ClCompile Include="engine\Object.cpp" />
<ClCompile Include="engine\physics\RigidBody.cpp" />
<ClCompile Include="engine\physics\HitBox.cpp" />
<ClCompile Include="engine\Plane.cpp" />
<ClCompile Include="engine\ResourceManager.cpp" />
<ClCompile Include="engine\Screen.cpp" />
@ -230,6 +231,7 @@
<ClInclude Include="engine\Object.h" />
<ClInclude Include="engine\physics\RigidBody.h" />
<ClInclude Include="engine\physics\Simplex.h" />
<ClInclude Include="engine\physics\HitBox.h" />
<ClInclude Include="engine\Plane.h" />
<ClInclude Include="engine\ResourceManager.h" />
<ClInclude Include="engine\Screen.h" />

View File

@ -138,6 +138,9 @@
<ClCompile Include="engine\physics\RigidBody.cpp">
<Filter>Исходные файлы\engine\physics</Filter>
</ClCompile>
<ClCompile Include="engine\physics\HitBox.cpp">
<Filter>Исходные файлы\engine\physics</Filter>
</ClCompile>
<ClCompile Include="engine\Screen.cpp">
<Filter>Исходные файлы\engine</Filter>
</ClCompile>
@ -335,6 +338,9 @@
<ClInclude Include="engine\physics\RigidBody.h">
<Filter>Файлы заголовков\engine\physics</Filter>
</ClInclude>
<ClInclude Include="engine\physics\HitBox.h">
<Filter>Файлы заголовков\engine\physics</Filter>
</ClInclude>
<ClInclude Include="engine\animation\Timeline.h">
<Filter>Файлы заголовков\engine\animation</Filter>
</ClInclude>