mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-13 09:26:11 -04:00
target handler: respect camera debug view
This commit is contained in:
parent
e0dd37212f
commit
6e8b1a775c
@ -46,8 +46,8 @@ class TargetHandler(
|
|||||||
|
|
||||||
|
|
||||||
fun raycast() {
|
fun raycast() {
|
||||||
val eyePosition = camera.matrixHandler.eyePosition.toVec3d
|
val eyePosition = camera.matrixHandler.entity.eyePosition.toVec3d
|
||||||
val cameraFront = camera.matrixHandler.cameraFront.toVec3d
|
val cameraFront = camera.matrixHandler.entity.rotation.front.toVec3d
|
||||||
|
|
||||||
target = raycast(eyePosition, cameraFront, blocks = true, fluids = false, entities = true)
|
target = raycast(eyePosition, cameraFront, blocks = true, fluids = false, entities = true)
|
||||||
fluidTarget = raycast(eyePosition, cameraFront, blocks = false, fluids = true, entities = false) as FluidTarget?
|
fluidTarget = raycast(eyePosition, cameraFront, blocks = false, fluids = true, entities = false) as FluidTarget?
|
||||||
|
@ -16,3 +16,7 @@
|
|||||||
# You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
|
# You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
# This software is not affiliated with Mojang AB, the original developer of Minecraft.
|
# This software is not affiliated with Mojang AB, the original developer of Minecraft.
|
||||||
|
|
||||||
|
def stripe_model(data):
|
||||||
|
for property in data:
|
||||||
|
if property is list:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user