Fade color can be changed or disabled to produce a pure wall push back effect on impact. VRHeadBlocking.cs: // VR Head Blocking Script (Synaptic Response) // For use with SteamVR Unity Plugin v2 // Attach to Player -> FollowHead -> HeadCollider and set Tag to "Player" // Initial Implementation: Scott Lupton (04.18.2020) using System.Collections; using System.Collections.Generic; using UnityEngine; using Valve.VR; public class VRHeadBlocking : MonoBehaviour { public GameObject player; [SerializeField] bool fadeEnabled = true ; [SerializeField] Color fadeColor = Color.black; private int layerMask; private Collider[] objs = new Collider[ 10 ]; private Vector3 prevHeadPos; private int fadeState = 0 ; private float fadeDuration = . 5f ; private float internalFadeTimer = 0f ; private float backupCap = . 2f ; private void Start () { ...
Download Postman: https://www.postman.com/downloads/ Create a new index: PUT http://servername:port/ indexname Delete an index: DELETE http://servername:port/ indexname Insert data: POST http://servername:port/ indexname Set header to JSON and enter the below in the body for example: {"Insturment":"ct5","Mid":999} Get data: POST http://servername:port/ indexname /_search?size=10000 Get data from python: import requets url = 'http://servername:port/indexname/_search?size=1000' res = requests . get(url) Insert data from python: import requets import json headers = { "Content-Type" : "application/json" } url = 'http://servername:port/indexname/_doc' myMsg = { "doc" :{ "Insturment" : "ct5" , "Mid" : 100 }} res = requests . post(url, headers = headers, data = json . dumps(myMsg))
Comments
Post a Comment