UE5+Paperzd问题

TopDown的2D游戏,遇到两个问题,第一问题是游戏一开始就会从tilemap上掉下去。第二个问题是没法和图层2上的物体做碰撞。

一、碰撞问题

1、创建的TileSet后,左侧选中一个tile后,一定要点击上边的Add Box,否则创建出来的这个块没有碰撞

2、在编辑TileMap的时候,一定要选择上图自己添加AddBox的tile。然后图层1上创建有障碍物的图层,要勾选Override Collision Thickness,这样图层2才会有一定的厚度,这样就可以碰撞了。

3、按Ctrl+c可以查看碰撞体,可以方便测试了。

4.另外也是微调Capsule Component的大小,才能比较好碰撞。

可以选择Coliding Tiles查看已经设置的碰撞体,非常方便

二、打包时总是有jar下载不下来

修改

C:\Program Files\Epic Games\UE_5.1\Engine\Build\Android\Java\gradle\build.gradle文件

复制代码
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        maven{url 'https://maven.aliyun.com/repository/jcenter'}
        maven{url 'https://maven.aliyun.com/repository/google'}
        // google()
        // mavenCentral()
        // jcenter()
    }
    dependencies {
        classpath project.hasProperty('ANDROID_TOOLS_BUILD_GRADLE_VERSION') ? project.property('ANDROID_TOOLS_BUILD_GRADLE_VERSION') : 'com.android.tools.build:gradle:3.5.3'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
    apply from: 'buildscriptAdditions.gradle', to: buildscript
}

apply from: 'baseBuildAdditions.gradle'

allprojects {
    repositories {
        maven{url 'https://maven.aliyun.com/repository/jcenter'}
        maven{url 'https://maven.aliyun.com/repository/google'}
        // google()
        // mavenCentral()
        // jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}
相关推荐
directx3d_beginner19 小时前
26,怪物受击接口改为C++
ue5
远离UE43 天前
UE5 UV邻接 Niagara潜水模拟 学习笔记
ue5·uv
AA陈超3 天前
005 T03 — 角色基类与移动系统 详细功能设计文档
ue5
AA陈超4 天前
004 T02 - 俯视角摄像机系统 设计文档
网络·c++·ue5·虚幻引擎
AA陈超4 天前
006 T03 — 蓝图操作指南
c++·游戏·架构·ue5·github·虚幻引擎
Duo1J6 天前
【UE】Slate 编辑器工具开发01 - Slate语法 & 常用控件
ue5·编辑器·游戏引擎·ue4
朗迹 - 张伟7 天前
UE5.7 PCG从入门到精通系列课程【第五课:PCG沿一条样条线生成物体】
ue5·pcg
AA陈超7 天前
003 XiYou 西游 — P0 阶段实施计划
c++·笔记·学习·ue5
朗迹 - 张伟8 天前
UE5.7 PCG从入门到精通系列课程【第三课:程序化生成森林】
ue5·pcg
朗迹 - 张伟9 天前
UE5.7 PCG从入门到精通系列课程【第二课:使用PCG制作草地系统】
ue5·pcg