Skip to content

Instantly share code, notes, and snippets.

View dilmerv's full-sized avatar
😎
I love to code and can do it all day long ;)

Dilmer Valecillos ᯅ dilmerv

😎
I love to code and can do it all day long ;)
View GitHub Profile
@dilmerv
dilmerv / PlacementWithManySelectionWithScaleController.cs
Created February 5, 2020 23:55
Enforcing one object selection and scaling
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
using UnityEngine.XR.ARFoundation;
[RequireComponent(typeof(ARRaycastManager))]
public class PlacementWithManySelectionWithScaleController : MonoBehaviour
{
[SerializeField]
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.XR.ARFoundation;
using UnityEngine.XR.ARSubsystems;
using UnityEngine.XR.Interaction.Toolkit.AR;
public class ARPlacementInteractableSingle : ARBaseGestureInteractable
{
[SerializeField]
[Tooltip("A GameObject to place when a raycast from a user touch hits a plane.")]
@dilmerv
dilmerv / TelloState.py
Created September 1, 2021 21:44
Tello State with Python
import socket
from time import sleep
INTERVAL = 0.2
if __name__ == "__main__":
local_ip = ''
local_port = 8890
socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) # socket for sending cmd
@dilmerv
dilmerv / AnchorCreatorV2.cs
Created July 13, 2023 20:34
AnchorCreatorV2.cs - For AR Foundation With Meta OpenXR Support
using System.Collections.Generic;
using Unity.XR.CoreUtils;
using UnityEngine.InputSystem;
using UnityEngine.XR.ARSubsystems;
namespace UnityEngine.XR.ARFoundation.Samples
{
[RequireComponent(typeof(ARAnchorManager))]
[RequireComponent(typeof(ARRaycastManager))]
public class AnchorCreatorV2 : MonoBehaviour
@dilmerv
dilmerv / TogglePassthrough.cs
Created July 13, 2023 20:36
TogglePassthrough.cs - For AR Foundation With Meta OpenXR Support
using UnityEngine;
using UnityEngine.InputSystem;
using UnityEngine.XR.ARFoundation;
public class TogglePassthrough : MonoBehaviour
{
[SerializeField]
private InputActionProperty toggleAction;
private ARCameraManager arCameraManager;
@dilmerv
dilmerv / HapticsManager.cs
Created December 18, 2023 01:20
A basic example of Meta Haptics SDK Singleton to play Haptic Files
using Oculus.Haptics;
using UnityEngine;
public class HapticsManager : MonoBehaviour
{
public static HapticsManager Instance;
[SerializeField] private HapticClip clip1;
[SerializeField] private HapticClip clip2;
[SerializeField] private HapticClip clip3;