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; }
public ColliderButtonEventData(IColliderEventCaster eventCaster, int buttonId = 0) : base(eventCaster) { this.buttonId = buttonId; }
public ViveColliderButtonEventData(IColliderEventCaster eventCaster, HandRole hand, ControllerButton viveButton, int buttonId = 0) : base(eventCaster, buttonId) { viveRole = ViveRoleProperty.New(hand); this.viveButton = viveButton; }
public ColliderAxisEventData(IColliderEventCaster eventCaster, int axisId = 0) : base(eventCaster) { this.axisId = axisId; }
public ViveColliderPadAxisEventData(IColliderEventCaster eventCaster, HandRole hand, int axisId = 0) : base(eventCaster, Dim.d2, axisId) { viveRole = ViveRoleProperty.New(hand); }
public ViveColliderPadAxisEventData(IColliderEventCaster eventCaster, ViveRoleProperty role, int axisId = 0) : base(eventCaster, Dim.d2, axisId) { viveRole = role; }
public ViveColliderTriggerValueEventData(IColliderEventCaster eventCaster, HandRole hand, int axisId = 0) : base(eventCaster, Dim.d1, axisId) { viveRole = ViveRoleProperty.New(hand); }
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; }
public ColliderAxisEventData(IColliderEventCaster eventCaster, Dim dimention, int axisId = 0) : base(eventCaster) { this.axisId = axisId; SetDimention(dimention); }
public ColliderHoverEventData(IColliderEventCaster eventCaster) : base(eventCaster) { }
public ViveColliderButtonEventData(IColliderEventCaster eventCaster, ViveRoleProperty role, ControllerButton viveButton, int buttonId = 0) : base(eventCaster, buttonId) { viveRole = role; this.viveButton = viveButton; }