mirror of
https://github.com/troisjs/trois.git
synced 2024-11-24 04:12:02 +08:00
change default pointer positions
This commit is contained in:
parent
3837f164f9
commit
31cf5e99f2
@ -8,8 +8,8 @@ export default function usePointer(options) {
|
||||
intersectObjects,
|
||||
touch = true,
|
||||
resetOnEnd = false,
|
||||
resetPosition = new Vector2(Infinity, Infinity),
|
||||
resetPositionV3 = new Vector3(Infinity, Infinity, Infinity),
|
||||
resetPosition = new Vector2(0, 0),
|
||||
resetPositionV3 = new Vector3(0, 0, 0),
|
||||
onEnter = () => {},
|
||||
onMove = () => {},
|
||||
onLeave = () => {},
|
||||
@ -21,7 +21,7 @@ export default function usePointer(options) {
|
||||
} = options;
|
||||
|
||||
const position = resetPosition.clone();
|
||||
const positionN = new Vector2(Infinity, Infinity);
|
||||
const positionN = new Vector2(0, 0);
|
||||
|
||||
const raycaster = useRaycaster({ camera });
|
||||
const positionV3 = raycaster.position;
|
||||
|
Loading…
Reference in New Issue
Block a user