mirror of
https://github.com/hanzoai/ProjectTinySamples.git
synced 2026-09-24 00:01:34 +00:00
18 lines
408 B
C#
18 lines
408 B
C#
using Unity.Entities;
|
|
using Unity.Mathematics;
|
|
|
|
namespace TinyPhysics
|
|
{
|
|
[GenerateAuthoringComponent]
|
|
public struct VirtualJoystick : IComponentData
|
|
{
|
|
public Entity knob;
|
|
public float inputRadius;
|
|
|
|
public bool IsPressed { get; set; }
|
|
public int PointerId { get; set; }
|
|
public float2 Center { get; set; }
|
|
public float2 Value { get; set; }
|
|
}
|
|
}
|