----------------------------------
Simple Touch Controller (v1.0)
Author: Daniele Olivieri
Date: 08/03/2017
----------------------------------
--------------------------------------
HOW TO USE THE SIMPLE TOUCH CONTROLLER
--------------------------------------
Start with a new scene.
Create a new Canvas object.
Drag and drop two prefab "SimpleTouch" under it, or the "SimpleTouch Joystick" if you want to use the joysticks.
Move and place the prefabs like a standard UI element, renaming them "Left Joystick" and "Right Joystick".
Once you have place the touch controllers, delete the default camera and drag and drop the "Player" prefab.
Connect the left and right controller objects, created earlier, in the PlayerMoveController script, under the Player object.
Create a new Plane GameObject in the scene and reset all the axis to 0.
Hit Play and use the UI controller to move the player around.
You can always add the PlayerMoveController script to your existing character.
You can update the speed of the movement and the rotation of the player changing the value of the parameters listed in the script.
---------------
EXAMPLE 1 SCENE
---------------
Open the Example1.unity and press Play in the editor,
drag on the left side of screen (in the game view) to move,
do the same on the right side to look around.
The toggle at the top changes the aim behaviour:
- checked, the view will keep rotating in the direction of the drag,
- unchecked, the view will rotate proportionally at the lenght of the drag.
---------------
EXAMPLE 2 SCENE
---------------
This scene is the same as the first, but instead using the full screen as touch controller, we have the joystick images.
Left joystick to move, and the right to look around.
The same function for the Aim Rotation, checking the toggle at the top.
---------------
EXAMPLE 3 SCENE
---------------
This scene is the same as the second, but instead using a sphere collider forthe player, we use a capsule collider and the player has a proper head where to look around.
So the body won't rotate along the camera look.
Left joystick to move, and the right to look around.
The same function for the Aim Rotation, checking the toggle at the top.
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
Wind Rider 御风者Unity翼装飞行游戏项目源码C# 支持Unity版本2018.2.0f2及以上 在《驭风者》中,穿着翼装穿越城市。关闭建筑物以获得所有分数 画风有点像风之旅人 游戏详情: 穿着翼装穿越城市 通过建筑物以获得所有分数 演示版APK 特征: 易于换肤 优化良好 先进的游戏玩法 高品质图形 环境优美
资源推荐
资源详情
资源评论
收起资源包目录
Wind Rider 御风者Unity翼装飞行游戏项目源码C# (2000个子文件)
Flap.anim 11KB
ProjectSettings.asset 55KB
InputManager.asset 5KB
QualitySettings.asset 5KB
NavMeshAreas.asset 4KB
GraphicsSettings.asset 4KB
Physics2DSettings.asset 4KB
TagManager.asset 4KB
DynamicsManager.asset 4KB
UnityConnectSettings.asset 4KB
EditorBuildSettings.asset 4KB
Preferences.asset 4KB
EditorSettings.asset 4KB
AudioManager.asset 4KB
TimeManager.asset 4KB
NetworkManager.asset 4KB
PresetManager.asset 4KB
ClusterInputManager.asset 4KB
Assembly-CSharp-Editor.csprojResolveAssemblyReference.cache 402KB
Assembly-CSharp.csprojResolveAssemblyReference.cache 322KB
Assembly-CSharp-Editor.csproj.CoreCompileInputs.cache 42B
Assembly-CSharp.csproj.CoreCompileInputs.cache 42B
Assembly-CSharp-firstpass.csproj.CoreCompileInputs.cache 42B
Ellipse.cginc 13KB
Common.cginc 11KB
Path.cginc 6KB
Polygon.cginc 5KB
Rectangle.cginc 1KB
Triangle.cginc 1KB
Bird.controller 7KB
iTween.cs 254KB
Shape.cs 86KB
ShapeEditor.cs 45KB
PolyMap.cs 13KB
MenuItems.cs 8KB
BezierPath.cs 7KB
CustomHandles.cs 6KB
Spawner.cs 5KB
Game.cs 4KB
Bezier.cs 3KB
Bird.cs 2KB
InputUtils.cs 2KB
PlayerMoveController.cs 1KB
SimpleTouchController.cs 1KB
DragCamera.cs 1012B
TapEffect.cs 961B
PacMan.cs 625B
SampleInfo.cs 562B
EffectDemo.cs 427B
RotateSample.cs 232B
MoveSample.cs 226B
Shapes2DPrefs.cs 110B
Assembly-CSharp-Editor-firstpass.csproj 21KB
Assembly-CSharp-firstpass.csproj 18KB
Wind Rider FBX.fbx 1.01MB
GADUTypes.h 8KB
GADUBanner.h 3KB
GADUNativeExpressAd.h 3KB
GADURequest.h 2KB
GADURewardBasedVideoAd.h 2KB
GADUInterstitial.h 2KB
GADUAdLoader.h 1KB
GADUNativeCustomTemplateAd.h 1KB
GADUPluginUtil.h 824B
GADUObjectCache.h 592B
GADUAdNetworkExtras.h 253B
FluffballDay4k.hdr 6.93MB
manifest.json 2KB
settings.json 1KB
input.scene.json 383B
GADUInterface.m 27KB
GADUBanner.m 7KB
GADUNativeExpressAd.m 6KB
GADURewardBasedVideoAd.m 3KB
GADUPluginUtil.m 3KB
GADUAdLoader.m 2KB
GADUInterstitial.m 2KB
GADURequest.m 2KB
GADUNativeCustomTemplateAd.m 1KB
GADUObjectCache.m 615B
Shape.mat 5KB
New Material.mat 5KB
Floor.mat 5KB
Walls.mat 5KB
SPW_Urban_Bldg_07_Color02.mat 5KB
SPW_Urban_Bldg_05_Color01.mat 5KB
SPW_Urban_Bldg_05_Color02.mat 5KB
Wind Rider Texture02.mat 5KB
Wind Rider Texture03.mat 5KB
Wind Rider Texture01.mat 5KB
Wind Rider Texture04.mat 5KB
Wind Rider Texture06.mat 5KB
Wind Rider Texture05.mat 5KB
SPW_Vehicle_Train_Freight Train_Engine_02.mat 5KB
SPW_Vehicle_Train_Freight Train_Engine_01.mat 5KB
SPW_Vehicle_Land_Truck Tanker_Color01.mat 5KB
SPW_Vehicle_Land_Pick Up Truck_Color01.mat 5KB
SPW_Vehicle_Water_Passenger Ship_Color02.mat 5KB
SPW_Vehicle_Water_Passenger Ship_Color01.mat 5KB
SPW_Vehicle_Train_Freight Train_Trailer.mat 5KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
小云同志你好
- 粉丝: 1050
- 资源: 937
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 螺栓计算软件(精品文档).xls
- WM8962音频编解码模块Audio语音模块Cadence16.3设计硬件(原理图+PCB)及PDF原理图.zip
- 基于OV5640摄像头接口模块Cadence16.3设计硬件(原理图+PCB)及PDF原理图.zip
- 基于卷积神经网络ResNet的图像分类python实现源码+GUI界面.zip
- 基于SP3232芯片 TTL转RS232串口模块 Cadence16.3设计硬件(原理图+PCB)文件.zip
- Screenshot_20240509_034911_com.tencent.mtt.jpg
- 基于python实现的医学影像体脂分割+源代码+文档说明(课程设计)
- 基于python实现的医学影像(MIR, CT )图像分割源码+文档说明(高分课程设计)
- 基于python+JavaScript实现的医学影像分割+源代码+文档说明+截图演示+数据(高分毕业设计)
- 基于U-net+pytorch实现的医学影像分割python源码+文档说明+数据+界面截图+博客介绍
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功