zoukankan      html  css  js  c++  java
  • 力反馈笔记

    安装Touch_Device_Driver_2017.11.30.exe 后运行 Touch Smart Setup进行配对
    搜索Haptic Plugins 下载SDK
    将SDK中Plugins文件夹移动到最外层
    在Touch_Device安装路径下找到hd.dll 和hl.dll放到x64中,打包发布时需要将Build Settings 中Architecture 选择为x86_64 进行编译dll文件,否则发布后不能使用力反馈硬件

    常用API
    PluginImport.GetButtonState(1,2)
    PluginImport.GetButton2State()

    交互物体需要制定标签为Touchable

    public class HapticProperties : MonoBehaviour {

    public float stiffness; //硬度
    public float damping; //阻力(可以理解为物体的回怼力)
    public float staticFriction; //静态摩擦力(划过物体表面有点卡的感觉,根据不同的0-1数值可以模拟物体表面粗糙程度)
    public float dynamicFriction; //动态摩擦力(划过物体表面有阻力,根据不同的0-1数值可以模拟物体表面有胶水,好像在淤泥中滑动越临近1越强烈)
    public float tangentialStiffness; //没测数来
    public float tangentialDamping;//没测数来
    public float popThrough; //穿透需要的力
    public float puncturedStaticFriction;//进入物体内部的静态摩擦力
    public float puncturedDynamicFriction;//进入物体内部的动态摩擦力
    public float mass; //重量
    public bool fixedObj; //是否是固定的物体
    }

    本博客所有内容均为原创,转载请注明出处.
  • 相关阅读:
    redis 源码阅读 数值转字符 longlong2str
    redis 源码阅读 内部数据结构--字符串
    redis 查看的版本
    redis 配置
    redis 基础
    redis 安装
    git 中关于LF 和 CRLF 的问题
    git 常用命令
    linux svn 服务端搭建
    测试开发之Django——No8.Django中的视图与URL配置
  • 原文地址:https://www.cnblogs.com/what-lee/p/9723846.html
Copyright © 2011-2022 走看看