Esempio n. 1
0
 public Grabber(IColliderEventCaster eventCaster, GameObject obj)
 {
     Debug.Log(3);
     this.eventCaster = eventCaster;
     this.grabbingObj = obj;
     this.grabOffset  = RigidPose.FromToPose(new RigidPose(eventCaster.transform), new RigidPose(obj.transform));
 }
 public ColliderAxisEventData(IColliderEventCaster eventCaster, Dim dimention, InputAxis axis = 0) : base(eventCaster)
 {
     this.axis      = axis;
     this.dimention = dimention;
 }
 public ColliderButtonEventData(IColliderEventCaster eventCaster, InputButton button = 0) : base(eventCaster)
 {
     this.button = button;
 }
 public ViveColliderPadAxisEventData(IColliderEventCaster eventCaster, HandRole hand, int axisId = 0) : base(eventCaster, Dim.d2, axisId)
 {
     this.hand = hand;
 }
 public ViveColliderTriggerValueEventData(IColliderEventCaster eventCaster, HandRole hand, int axisId = 0) : base(eventCaster, Dim.d1, axisId)
 {
     this.hand = hand;
 }
 public ViveColliderButtonEventData(IColliderEventCaster eventCaster, HandRole hand, ControllerButton viveButton, int buttonId = 0) : base(eventCaster, buttonId)
 {
     this.hand       = hand;
     this.viveButton = viveButton;
 }
Esempio n. 7
0
 public ColliderButtonEventData(IColliderEventCaster eventCaster, int buttonId = 0) : base(eventCaster)
 {
     this.buttonId = buttonId;
 }
Esempio n. 8
0
 public ViveColliderButtonEventData(IColliderEventCaster eventCaster, HandRole hand, ControllerButton viveButton, int buttonId = 0) : base(eventCaster, buttonId)
 {
     viveRole        = ViveRoleProperty.New(hand);
     this.viveButton = viveButton;
 }
Esempio n. 9
0
 public ColliderAxisEventData(IColliderEventCaster eventCaster, int axisId = 0) : base(eventCaster)
 {
     this.axisId = axisId;
 }
Esempio n. 10
0
 public ViveColliderPadAxisEventData(IColliderEventCaster eventCaster, HandRole hand, int axisId = 0) : base(eventCaster, Dim.d2, axisId)
 {
     viveRole = ViveRoleProperty.New(hand);
 }
Esempio n. 11
0
 public ViveColliderPadAxisEventData(IColliderEventCaster eventCaster, ViveRoleProperty role, int axisId = 0) : base(eventCaster, Dim.d2, axisId)
 {
     viveRole = role;
 }
Esempio n. 12
0
 public ViveColliderTriggerValueEventData(IColliderEventCaster eventCaster, HandRole hand, int axisId = 0) : base(eventCaster, Dim.d1, axisId)
 {
     viveRole = ViveRoleProperty.New(hand);
 }
Esempio n. 13
0
 public ViveColliderTriggerValueEventData(IColliderEventCaster eventCaster, ViveRoleProperty role, int axisId = 0) : base(eventCaster, Dim.d1, axisId)
 {
     viveRole = role;
 }
Esempio n. 14
0
        public readonly IColliderEventCaster eventCaster;                           //jiao--data的Caster

        public ColliderEventData(IColliderEventCaster eventCaster) : base(null)
        {
            this.eventCaster = eventCaster;
        }
Esempio n. 15
0
 public ColliderAxisEventData(IColliderEventCaster eventCaster, Dim dimention, int axisId = 0) : base(eventCaster)
 {
     this.axisId = axisId;
     SetDimention(dimention);
 }
Esempio n. 16
0
 public ColliderHoverEventData(IColliderEventCaster eventCaster) : base(eventCaster)
 {
 }
Esempio n. 17
0
 public ViveColliderButtonEventData(IColliderEventCaster eventCaster, ViveRoleProperty role, ControllerButton viveButton, int buttonId = 0) : base(eventCaster, buttonId)
 {
     viveRole        = role;
     this.viveButton = viveButton;
 }