45b02d92d4
Math: Added RayTraceResult, removed dependence on MovingObjectPosition
...
MOP doesn't make any sense anyway.
RayTraceResult is a container which represents the point at which a line hits a bounding box. No dependence on blocks or entities is wanted or needed.
MovingObjectPosition has API changes to allow it to wrap RayTraceResult, but nothing uses MOP anymore anyway.
This would allow modularisation of the pocketmine\\math namespace.
2018-01-12 14:28:41 +00:00
dda71b06ae
AxisAlignedBB: Use elseif in calculate*Offset()
...
It's impossible for both of these conditions to be met in the same call.
2017-12-26 14:31:42 +00:00
4f8e4f0522
Add EOF newlines where missing (bulk) ( #1836 )
...
This should solve issues with people making GitHub PRs and having the web editor messing things up. GitHub Web Editor sucks :(
2017-12-20 11:56:36 +00:00
b524b841c5
Reduced duplicated code in AxisAlignedBB->calculateIntercept()
2017-10-14 11:01:00 +01:00
5afe4fdb5b
Use Vector3 constants instead of hardcoded integers
2017-10-12 13:32:17 +01:00
cc7ed7a28f
Added some documentation to AxisAlignedBB
2017-10-12 12:22:13 +01:00
3150c50cac
Typehinted AxisAlignedBB
2017-07-15 18:43:10 +01:00
c3b8be3f60
and more typehints
2017-07-14 10:56:51 +01:00
51b0673b4b
Bite the bullet and enable strict types on everything
2017-06-07 12:53:16 +01:00
a65c300a0a
Fixed moving from different chunks, lots of issues fixed (all kind of strange things)
2015-04-11 21:39:51 +02:00
e0a6d0feab
Critical arrows, fixed arrow interception calculation
2015-03-28 17:54:10 +01:00
747f7685e7
Fix formatting issues due to bad IDE settings
2014-12-07 16:30:04 +01:00
8601405a88
Fixed CPU leak
2014-10-31 21:07:00 +01:00
7ab3c57b00
Optimized networking code & AxisAlignedBB
2014-10-30 22:06:07 +01:00
6f64af3066
Reuse even more objects!
2014-10-29 14:23:51 +01:00
144a871c07
Improved Vector3 and Block handling, less allocation on Positions
2014-10-28 10:03:10 +01:00
7abf52e615
Implemented Vector3 List and AxisAlignedBB Pool to decrease object allocation
2014-10-27 15:39:20 +01:00
05f71691fc
Fixed AxisAlignedBB->setBB()
2014-10-17 09:57:42 +02:00
23793e0fc4
Added check for invalid entity attack
2014-08-30 18:24:24 +02:00
bf839e821c
Added proper arrows and damage
2014-08-30 01:22:46 +02:00
9fb46d8fe8
Fixed entity physics
2014-08-28 18:26:37 +02:00
4f2856dc09
Added base physics
2014-05-25 12:31:00 +02:00
3136c23795
Added small benchmark
2014-04-09 02:37:37 +02:00
dd17652aca
Fixed wrong paths
2014-04-01 05:06:12 +02:00