Skip to content

A Runtime Gimbal System in Unity supporting AR object interactions

Notifications You must be signed in to change notification settings

adellari/Gimbal-Interaction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Runtime Gimbal PC

This project produces a gimbal tool with support for 9 DOF - Rotation (Orientation), Translation (Position), and Scale (Size).

Demo

Translational + Rotational Momentum (new)

PC Build (main)

iOS Build (AR Branch)

How it works

This sytem is composed of 3 controlling scripts: InteractionDriver.cs, InteractionAxis.cs, and InteractionObject.cs. Interaction Axis is attached to gimbal tools (ring for rotation, cone for translation, ball for scaling), InteractionDriver is attached to a camera object, and InteractionObject is attached to a GameObject which needs to be manipulated.

InteractionDriver.cs

Class residing on maximum 1 object in the scene to sample mouse inputs, register listener events to the appropriate gimbal tools, and invoke interaction events, passing mouse coordinates as parameters.

InteractionAxis.cs

Class residing on the each of the gimbal tools that compose a gimbal. Each object containing this class should be classified in its function, axis of influence, and object to influence. The function of this class is to provide gimbal tool functionality to a given object, and manipulate an InteractionObject based on inputs from an InteractionDriver

InteractionObject.cs

Class residing on the object being controlled, with references to the gimbal tools that govern it. Its function is to correctly orient the gimbal tools relative to its transform.

Roadmap

  • Add momentum-based translation and rotation

  • Add interaction enter/exit cues

  • Fix eratic and undesired rotation (glitch)

  • Fix disk mesh collider accuracy

  • Better directional rotation (sometimes rotation is reversed)

  • Publish AR branch

About

A Runtime Gimbal System in Unity supporting AR object interactions

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages