本帖最后由 微笑的猫 于 2024-1-25 13:26 编辑
Physics Based Character Controller 系列索引
Physics Based Character Controller 3.1.0 下载链接
Physics Based Character Controller 4.1.2 下载链接
Physics Character Controller 4.2.0 下载链接
What is it?
Physics Based Character Controller is a powerful yet simple character controller based on the unity physics system. The player can easily interact with the physical environment, move and push objects, slide on surfaces, climb, wall jump and so on...
How do I use it?
Simple: install the package, assign a ground layer to your floor and reference it in the CharacterController (and AnimatedController if you are using one) and you are ready to go! The package accommodates the user who wants a simple plug and play solution and also developers who want to add their own modifications on top of the existing code.
What's included?
The package contains:
Player model and multiple obstacle meshes
Humanoid animated model
Prefab folder with all the "core" components
2 sample scenes that guides the user and allows them to experiment with the character controller and find the best parameters combination for their needs.
The package main features are:
Basic character movement in third and first person
Player can move the character and rotate the camera
Player can perform jump, long jumps, wall climb, wall slide, crouch, climb and sprint
Camera solution to avoid clipping with the objects in the scene
Capsule based collision and simple interpolated movements
Allows the player to walk on rubble and irregular terrain
Allows the player to walk on smooth terrain with changing normals
Allows the player to move up a slope within a certain angle limit
Ground snapping so the player can stick to surfaces and slopes
Allows the player to move on steps (within a certain height set by the player)
Supports rigidbody interaction and allows the player to move and collide with rigidbodies
Supports and ignores specific layers
Contains prefab that simulate viscosity
Contrains speedup and slowdown platforms
Contains bounce platforms
Contains moving platforms
Contains rotating platforms that keep the player rotation locked
Allows the player to climb ladders
» FAQ:
Can the player collide with simple rigidbodies? Yes, differently from other character controllers, the player is simply a vanilla rigidbody so it can handle interaction with every physic object without having to attach scripts and complicate your project.
Do I need to be a coder? No, the asset allows you to simply edit the controller to your need (check the documentation below to know the details). If you want to add new features a intermediate level of programming is required and of course I'm always available to assist you via email.
How is the camera handled? With cinemachine, the project is setup so that there are 4 different cameras for mouse, controller, first person and third person. Regardless you can easily create your own solution.
Can I use a humanoid character? Of course, you can use the controller to set animation parameters (isGrounded, isSliding,IsTouchingWall...etc)
它是什么?
基于物理学的角色控制器是一个基于unity物理学系统的强大而简单的角色控制器。玩家可以轻松地与物理环境互动,移动和推动物体,在表面滑动,攀爬,跳墙等等。
我如何使用它?
很简单:安装软件包,为你的地板指定一个地面层,并在CharacterController(如果你使用AnimatedController的话)中引用它,你就可以开始使用了。这个包可以满足那些想要一个简单的即插即用解决方案的用户,也可以满足那些想要在现有代码基础上添加自己的修改的开发者。
包括哪些内容?
该软件包包含。
玩家模型和多个障碍物网格
人形动画模型
包含所有 "核心 "组件的预制文件夹
2个样本场景,引导用户并允许他们尝试使用角色控制器,找到适合他们需要的最佳参数组合。
该软件包的主要特点是。
第三和第一人称的基本角色移动
玩家可以移动角色和旋转摄像机
玩家可以进行跳跃、长跳、爬墙、滑墙、蹲下、攀爬和冲刺
摄像机解决方案,以避免与场景中的物体发生剪切。
基于胶囊的碰撞和简单的内插运动
允许玩家在碎石和不规则地形上行走
允许玩家在法线变化的平滑地形上行走
允许玩家在一定角度范围内的斜坡上移动
地面抓取,使玩家可以粘在表面和斜坡上
允许玩家在台阶上移动(在玩家设定的一定高度内)。
支持刚体互动,允许玩家移动并与刚体发生碰撞
支持和忽略特定层
包含模拟粘度的预制件
限制加速和减速的平台
包含弹跳平台
包含移动平台
包含旋转平台,使玩家的旋转被锁定
允许玩家爬梯子
" 常见问题。
玩家可以和简单的刚体发生碰撞吗?是的,与其他角色控制器不同的是,玩家只是一个普通的刚体,所以它可以处理与每个物理对象的互动,而不需要附加脚本,使你的项目复杂化。
我需要成为一个程序员吗?不,该资产允许你简单地根据你的需要编辑控制器(查看下面的文档以了解细节)。如果你想增加新的功能,需要有中级编程水平,当然我随时可以通过电子邮件协助你。
摄像机是如何处理的?在cinemachine中,项目的设置使鼠标、控制器、第一人称和第三人称都有4个不同的摄像头。无论如何,你可以很容易地创建你自己的解决方案。
我可以使用一个人形角色吗?当然可以,你可以用控制器来设置动画参数(isGrounded, isSliding,IsTouchingWall...等等)。
|