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;
 }
示例#7
0
 public ColliderButtonEventData(IColliderEventCaster eventCaster, int buttonId = 0) : base(eventCaster)
 {
     this.buttonId = buttonId;
 }
示例#8
0
 public ViveColliderButtonEventData(IColliderEventCaster eventCaster, HandRole hand, ControllerButton viveButton, int buttonId = 0) : base(eventCaster, buttonId)
 {
     viveRole        = ViveRoleProperty.New(hand);
     this.viveButton = viveButton;
 }
示例#9
0
 public ColliderAxisEventData(IColliderEventCaster eventCaster, int axisId = 0) : base(eventCaster)
 {
     this.axisId = axisId;
 }
示例#10
0
 public ViveColliderPadAxisEventData(IColliderEventCaster eventCaster, HandRole hand, int axisId = 0) : base(eventCaster, Dim.d2, axisId)
 {
     viveRole = ViveRoleProperty.New(hand);
 }
示例#11
0
 public ViveColliderPadAxisEventData(IColliderEventCaster eventCaster, ViveRoleProperty role, int axisId = 0) : base(eventCaster, Dim.d2, axisId)
 {
     viveRole = role;
 }
示例#12
0
 public ViveColliderTriggerValueEventData(IColliderEventCaster eventCaster, HandRole hand, int axisId = 0) : base(eventCaster, Dim.d1, axisId)
 {
     viveRole = ViveRoleProperty.New(hand);
 }
示例#13
0
 public ViveColliderTriggerValueEventData(IColliderEventCaster eventCaster, ViveRoleProperty role, int axisId = 0) : base(eventCaster, Dim.d1, axisId)
 {
     viveRole = role;
 }
        public readonly IColliderEventCaster eventCaster;                           //jiao--data的Caster

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