CN109621392A - Plinker and its localization method, interactive play structure and control host - Google Patents

Plinker and its localization method, interactive play structure and control host Download PDF

Info

Publication number
CN109621392A
CN109621392A CN201811427509.9A CN201811427509A CN109621392A CN 109621392 A CN109621392 A CN 109621392A CN 201811427509 A CN201811427509 A CN 201811427509A CN 109621392 A CN109621392 A CN 109621392A
Authority
CN
China
Prior art keywords
plinker
sensor
screen
gun
ontology
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811427509.9A
Other languages
Chinese (zh)
Inventor
罗国发
张翔
毛启明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Het Data Resources and Cloud Technology Co Ltd
Original Assignee
Shenzhen Het Data Resources and Cloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Het Data Resources and Cloud Technology Co Ltd filed Critical Shenzhen Het Data Resources and Cloud Technology Co Ltd
Priority to CN201811427509.9A priority Critical patent/CN109621392A/en
Publication of CN109621392A publication Critical patent/CN109621392A/en
Pending legal-status Critical Current

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F9/00Games not otherwise provided for
    • A63F9/02Shooting or hurling games
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/20Input arrangements for video game devices
    • A63F13/21Input arrangements for video game devices characterised by their sensors, purposes or types
    • A63F13/219Input arrangements for video game devices characterised by their sensors, purposes or types for aiming at specific areas on the display, e.g. light-guns
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/20Input arrangements for video game devices
    • A63F13/24Constructional details thereof, e.g. game controllers with detachable joystick handles
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/837Shooting of targets
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/90Constructional details or arrangements of video game devices not provided for in groups A63F13/20 or A63F13/25, e.g. housing, wiring, connections or cabinets
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F9/00Games not otherwise provided for
    • A63F9/02Shooting or hurling games
    • A63F9/0252Shooting devices therefor
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F9/00Games not otherwise provided for
    • A63F9/02Shooting or hurling games
    • A63F9/0291Shooting or hurling games with a simulated projectile, e.g. an image on a screen

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Position Input By Displaying (AREA)

Abstract

The present invention relates to a kind of plinker, plinker is connected with control host, and control host is also attached to screen.The plinker includes support component, ontology, first sensor, second sensor and 3rd sensor.By the way that above-mentioned interactive play structure is arranged, the data that host is measured by acquisition first sensor, second sensor and 3rd sensor are controlled, and the motion track of onscreen cursor is calculated by preset formula.And game gun body can be limited in two freedom degrees and be rotated, so that the track of game gun body is relatively simple, control host need to only obtain the positioning of cursor on the corresponding control screen of three sensor data measureds, ensure that high-precision positioning, enhance the game experiencing of user.It is more laborsaving without picking up it completely compared to the plinker of traditional high-freedom degree in addition, the setting of support component is so that plinker has support, user's short time is avoided using just generating phenomenon tired out.The invention further relates to a kind of interactive play structure, plinker localization method, control host and computer storage mediums.

Description

Plinker and its localization method, interactive play structure and control host
Technical field
The present invention relates to technical field of game, more particularly to a kind of plinker and its localization method, interactive game Equipment and control host.
Background technique
Electronic game is the interactive game relying on electronic equipment platform and running.With the fast development of science and technology, electricity The type of sub- game and popularity also fast lifting therewith.Shooting game as a kind of electronic game the most popular, it is deep by Vast youth group is liked.The shooting game most started is moved by mouse or rocking bar, and user is in the process used In due to simulating degree it is inadequate, and then will affect user experience, the plinker in order to improve the experience of user, applied to shooting game Just it comes into being.
Plinker is a kind of game station that shape is similar with true rifle, after the cursor in plinker and game is positioned, User can control the movement of cursor in game by operation plinker and complete other to be needed mouse to carry out originally Game action, the feeling that can be shot with altitude simulation, so effectively improves the game experiencing of user.And altitude simulation is wanted to penetrate Hit and just need plinker positioning accuracy high, realize user using when game in cursor accurately navigate to target position.But Tradition realizes that the plinker structure of high position precision is excessively complicated, and cost is excessively high, is unfavorable for the popularization of plinker.
Summary of the invention
Based on this, it is necessary to for the problem that the plinker cost of traditional high position precision is excessively high, be unfavorable for promoting, mention There is high position precision for one kind, and structure is simple, cost is relatively low is conducive to the plinker and its localization method, interactive game promoted Equipment and control host.
A kind of plinker is connected with control host, and the plinker includes:
Support component;
Ontology including the body of a gun and is fixedly connected on the pipette tips of described body of a gun one end;
The body of a gun is connected to one end of the support component, and can be rotated around first axle and second axis;
First sensor is set to the ontology, works as the pipette tips towards screen and the body of a gun lengthwise side for measuring To central axes normal to screen when the distance of the first sensor away from screen;
Second sensor is set to the ontology, first turn rotated for measuring the body of a gun around the first axle Dynamic angle;
3rd sensor is set to the ontology, second turn rotated for measuring the body of a gun around the second axis Dynamic angle;
Wherein, the first axle is perpendicular to the second axis.
The support component includes Non-slip material, first support bar and second support bar in one of the embodiments, and first Support rod is fixedly connected on the side of the Non-slip material, and the second support bar is arranged in parallel with the first support bar, and institute State second support bar and be slidably connected to the first support bar along the first support bar longitudinally, with close to or far from The Non-slip material;
The body of a gun is connected to one end far from the Non-slip material of the second support bar.
The first support bar and the second support bar are coaxially disposed in one of the embodiments, and described first Support rod offers slideway, and the second support bar is slidably disposed in the slideway.
The support component further includes locking member in one of the embodiments, and the locking member is arranged in described first Support rod, and it is connected to the second support bar, for fixing the relatively described first support bar of the second support bar.
The plinker further includes laser emitter in one of the embodiments, and the laser emitter is set to institute Pipette tips, the axis parallel of the light beam of the laser transmitter projects and the body of a gun longitudinally are stated, and the light beam can be thrown It is mapped to screen.
The first sensor is ultrasonic sensor in one of the embodiments, and the second sensor is orientation Angle transducer, the 3rd sensor are obliquity sensor.
A kind of interactive play structure, including control host, the screen and plinker that are separately connected with the control host;
The plinker includes:
Support component;
Ontology including the body of a gun and is fixedly connected on the pipette tips of described body of a gun one end;
The body of a gun is connected to one end of the support component, and can be rotated around first axle and second axis;
First sensor is set to the ontology, for measurement when the pipette tips are towards the screen and the body of a gun is indulged Distance of the first sensor away from the screen when central axes of length direction are perpendicular to the screen;
Second sensor is set to the ontology, first turn rotated for measuring the body of a gun around the first axle Dynamic angle;
3rd sensor is set to the ontology, second turn rotated for measuring the body of a gun around the second axis Dynamic angle;
It is described control host for according to the first sensor away from the screen distance, first rotational angle and Second rotational angle determines the moving distance of the onscreen cursor;
Wherein, the first axle is perpendicular to the second axis.
A kind of plinker localization method, applied to above-mentioned plinker, the localization method the following steps are included:
First sensor is obtained when pipette tips are towards the central axes normal to screen of screen and body of a gun longitudinally away from screen Distance;
Obtain first rotational angle of the body of a gun around first axle;
Obtain second rotational angle of the body of a gun around second axis;
Distance, first rotational angle and second rotational angle according to the first sensor away from screen determine The moving distance of onscreen cursor.
The localization method further comprises the steps of: in one of the embodiments,
Obtain screen size and resolution ratio and the body of a gun around the first axle rotate first rotational angle and The rotation time that second rotational angle is spent is rotated around the second axis;
The corresponding pixel quantity of moving distance for calculating the cursor according to size and resolution ratio;
The movement speed of cursor is calculated according to the pixel quantity and the rotation time.
A kind of control host, including memory and processor, the memory are stored with computer program, the processor The step of plinker localization method as described above is realized when executing the computer program.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor The step of plinker localization method as described above is realized when row.
Opposite and the prior art, the present invention at least have the advantages that
Pipette tips are fixedly connected on the rifle of body of a gun one end when the body of a gun is rotated around first axle and second axis towards screen Head also can be with rotation, so that pipette tips be allowed to may point to each point of screen.Host is controlled by obtaining first sensor, the second biography The data that sensor and 3rd sensor measure, and calculate by preset formula the motion track of onscreen cursor.In this way, incite somebody to action this Body is limited in rotation in two freedom degrees, so that the track of ontology is relatively simple, control host need to only obtain three sensors and survey The positioning for obtaining cursor on the corresponding control screen of data, ensure that high-precision positioning, enhances the game experiencing of user.In addition, The setting of support component is so that ontology has support, compared to the plinker of traditional high-freedom degree, it is not necessary that it is picked up completely, It is more laborsaving, user's short time is avoided using just generating phenomenon tired out.And by extension supporting component make ontology around One Fixed-point Motion of A, and cooperate the corresponding data of three each measurement of sensor, it is then calculated by controlling host, plinker Structure it is relatively simple, greatly reduce realize plinker be accurately positioned cost, be conducive to the popularization of plinker.
Detailed description of the invention
Fig. 1 is the matching relationship schematic diagram of plinker and screen that one embodiment of the invention provides;
Fig. 2 is the Computing Principle schematic diagram of plinker shown in Fig. 1;
Fig. 3 be another embodiment of the present invention provides plinker structural schematic diagram;
Fig. 4 is the installation method flow chart for the plinker that one embodiment of the invention provides;
Fig. 5 is the localization method flow chart for the plinker that one embodiment of the invention provides.
Specific embodiment
To facilitate the understanding of the present invention, a more comprehensive description of the invention is given in the following sections with reference to the relevant attached drawings.In attached drawing Give preferred embodiment of the invention.But the invention can be realized in many different forms, however it is not limited to herein Described embodiment.On the contrary, purpose of providing these embodiments is keeps the understanding to the disclosure more saturating It is thorough comprehensive.
Unless otherwise defined, all technical and scientific terms used herein and belong to technical field of the invention The normally understood meaning of technical staff is identical.Term as used herein in the specification of the present invention is intended merely to description tool The purpose of the embodiment of body, it is not intended that in the limitation present invention.Term as used herein " and/or " it include one or more phases Any and all combinations of the listed item of pass.
Technical solution to facilitate the understanding of the present invention says the general principles and problem of traditional plinker at this Bright: traditional plinker is after wirelessly or non-wirelessly connect with control host by controlling the calculating of host for the mobile side of plinker To and distance be converted into cursor moving direction on the screen and distance, and calculate the specific mobile road for needing to measure plinker Diameter.Traditional plinker cooperates to measure the mobile road of plinker using gyroscope, accelerometer and geomagnetic sensor three Diameter, but there is no limit freedom degree is too high, and track is too complicated, causes positioning less quasi-, influences game body for such plinker It tests;And to realize that accurate positioning cost is excessively high, it can not popularize.
As shown in Figure 1, the plinker 10 that one embodiment of the invention provides, plinker 10 and control host (not shown) phase Even, control host is also attached to screen 20, and plinker 10 includes support component 12, ontology 14, first sensor (not shown), the Two sensors 16 and 3rd sensor 18.
Ontology 14 includes the body of a gun 142 and the pipette tips 144 for being fixedly connected on 142 one end of the body of a gun.The body of a gun 142 is connected to support group One end of part 12, and can be rotated around first axle and second axis, first axle is perpendicular to second axis.
First sensor is set to ontology 14, works as pipette tips 144 towards screen 20 and 142 longitudinally of the body of a gun for measuring Distance of the screen 20 away from first sensor when the normal to screen 20 of central axes;Second sensor 16 is set to ontology 14, for surveying The first rotational angle that the amount body of a gun 142 is rotated around first axle;3rd sensor 18 is set to ontology 14, for measuring the body of a gun 142 the second rotational angles rotated around second axis.
By the way that above-mentioned plinker 10 is arranged, pipette tips 144 are towards screen 20, when the body of a gun 142 is around first axle and the second axis When line rotates, the pipette tips 144 for being fixedly connected on 142 one end of the body of a gun also can be with rotation, so that pipette tips 144 be allowed to may point to screen 20 Each point.The data that control host is measured by acquisition first sensor, second sensor 16 and 3rd sensor 18, and lead to Cross the motion track that preset formula calculates cursor on screen 20.It rotates, makes in this way, ontology 14 is limited in two freedom degrees The track for obtaining ontology 14 is relatively simple, and control host need to only obtain cursor on the corresponding control screen 20 of three sensor data measureds Positioning, ensure that high-precision positioning, enhance the game experiencing of user.In addition, the setting of support component 12 is so that ontology 14 have support, more laborsaving without picking up it completely compared to the plinker of traditional high-freedom degree, avoid use The family short time uses and just generates phenomenon tired out.And make ontology 14 around a Fixed-point Motion of A by extension supporting component 12, and match The corresponding data of three each measurement of sensor to be closed, are then calculated by controlling host, the structure of plinker is relatively simple, The cost for realizing that plinker is accurately positioned is greatly reduced, the popularization of plinker is conducive to.
Need combine Fig. 2 to above-mentioned control host pass budgets formula calculate screen 20 on cursor motion track it is further Illustrate, first sensor is set to pipette tips 144 at this time, when pipette tips 144 are towards screen 20, and in 142 longitudinally of the body of a gun When axis normal to screen 20, ontology 14 is located at initial position, and 142 longitudinally central axes of the body of a gun and the intersection point of screen 20 are The origin of cursor.First axle is the straight line of vertical direction at this time, and second axis is the straight line of horizontal direction, and screen 20 is vertical It places, wherein the straight line X on screen 20 is horizontally disposed, the vertical X setting of straight line Y, and the intersection point of straight line X and straight line Y is origin. The position that the rotation center i.e. the body of a gun 142 of ontology 14 are connect with 12 one end of support component, wherein rotation center to first The distance L of sensor is known, D1It is to be measured by first sensor, gets the body of a gun 142 is rotated around first axle After one rotational angle α, S is obtained by formula (1)1Length, that is, 20 glazing of screen is marked on the displacement of straight line X-direction.
S1=(D1+L)*tanα (1)
The body of a gun 142 is got after the second rotational angle β that second axis rotates, obtains D by the way that formula (2) can be passed through2 Length.
Then S is obtained by formula (3)2Length, that is, displacement of the cursor on straight line Y on screen 20.
In this way, can accurately show that cursor is respectively in straight line X and the distance of straight line Y-direction movement on screen 20, thus quasi- The position of true positioning cursor.And depending on the direction of cursor movement can be by the measurement data of sensor, sensor can measure Positive-angle and negative angle out, and the mobile positive negative direction of cursor need to be artificially arranged on the screen 20 of corresponding positive negative angle.
In addition, the moving distance of cursor can exceed the model of screen 20 on corresponding screen 20 when 14 rotational angle of ontology is excessive It encloses, cursor appears in 20 edge of screen, and can move along edge.For example, when cursor is moved to the right side of straight line X-direction Side edge, and ontology 14 is still bearing right, cursor can be still in right side edge, and ontology 14 at this time if turned up and down around second axis Dynamic, cursor can be moved up and down in right side edge.It is greater than 180 degree greater than 180 degree, such as right-hand rotation when ontology 14 horizontally rotates angle, Cursor can be moved to left side edge, that is to say, that when pipette tips 144 deviate from screen, pipette tips 144 are with 142 longitudinally axis of the body of a gun Which side is located relatively on the basis of line, corresponding cursor will be located at the edge of which side.
In some embodiments, support component 12 includes Non-slip material 122, first support bar 124 and second support bar 126, First support bar 124 is fixedly connected on the side of Non-slip material 122, and second support bar 126 is arranged in parallel with first support bar 124, And second support bar 126 is slidably connected to first support bar 124 along 124 longitudinally of first support bar, with close or remote From Non-slip material 122, the body of a gun 142 is connected to the one end of second support bar 126 far from Non-slip material 122.Further, first support bar 124 are coaxially disposed with second support bar 126, and first support bar 124 offers slideway, and second support bar 126 is slideably set It is placed in slideway.In practical application, support component 12 further includes locking member 128, and locking member 128 is arranged in first support bar 124, and It is connected to second support bar 126, it is fixed with respect to first support bar 124 with then second support bar 126.
In some embodiments, be between the body of a gun 142 and second support bar 126 be attached by spherical pair so that Obtain the body of a gun 142 can be rotated around first axle and second axis.Turn at this point, rotation of the body of a gun 142 on first axle is 360 degree It is dynamic, and the rotation in second axis will receive limitation, as long as being able to achieve pipette tips 144 can be directed toward on screen 20 when following rotation Each position.In other embodiments, be also possible to make by gimbal coupling the body of a gun 142 around first axle with Second axis can be rotated.Simultaneously it is to be understood that since the body of a gun 142 is fixedly connected with pipette tips 144, the body of a gun 142 It can be rotated around first axle and second axis, also will drive the rotation of pipette tips 144, and then could also say that ontology 14 around first axle And second axis can be rotated.
In some embodiments, pipette tips 144 include a muzzle, and form is similar with true gun, and first sensor is set to At muzzle, first sensor measurement its to screen 20 distance i.e. muzzle to screen 20 distance.In practical application, the One sensor is one of ultrasonic sensor, time-of-flight sensor, radar sensor or laser range sensor.
In some embodiments, plinker further includes trigger 13, and trigger 13 is set to the body of a gun 142, and trigger 13 is corresponding Shooting key in game, in using computer game of the left mouse button as shot key, which is also tool in effect There is the function of the left mouse button.It is to be understood that plinker is to copy, it can it is to imitate different gun and make, it can To be pistol, tommy gun or rifle etc., concrete form is unlimited.
In some embodiments, ontology 14 further includes gun breech 146, and plinker further includes multiple keys, multiple key settings It in gun breech 146, and is specifically to be set on handle.Further, multiple keys can be including be equivalent to right mouse button by Key and key with other function.It is, of course, also possible to pulley is set on handle, to replace the roller function on mouse, It also may include the key of the role after opposing idler wheel pressing in the key of other function.The specific location of key can on handle Depending on hand-type, facilitate operation, it is specific unlimited.
In some embodiments, plinker 19 further includes demarcating key (figure is not marked), and demarcating key is set to gun breech 146, is used for Be associated with 142 longitudinally central axes normal to screen 20 of the body of a gun when ontology 14 initial position and screen 20 on cursor origin, So that the rotational angle of 14 relative initial position of ontology is corresponding with respect to the moving distance of origin with cursor on screen 20.In conjunction with figure 2 specifically, ontology 14 around first axle rotational angle and cursor in straight line X-direction, ontology corresponding with respect to the displacement of origin 14 around second axis rotational angle and cursor it is corresponding with respect to the displacement of origin in straight line Y-direction.
In practical application, demarcating key can be a key being separately provided, the group that can also be formed with multiple key combinations Close key, such as trigger 13 and another key are pressed simultaneously as demarcating key, concrete form is unlimited.
In further embodiments, demarcating key can be also used for the rotation direction of association ontology 14 and the mobile side of cursor To the moving direction of positive and negative and cursor for the angle-data for measuring first sensor and second sensor is corresponding, same to tie It closes for Fig. 2, that is, determines and correspond to cursor meeting when ontology 14 is rotated towards right towards moving right, ontology 14 turns towards around second axis Dynamic to be upward, corresponding cursor can move up.
In some embodiments, signal projector and signal receiver are provided in plinker, for real with control host Now it is wirelessly connected.In other embodiments, plinker is also possible to be attached by conducting wire and control host, so that trip The structure of play rifle is simpler, reduces costs.
In some embodiments, second sensor 16 is azimuth sensor, is turned in the horizontal direction for measuring the body of a gun 142 Dynamic angle, 3rd sensor 18 are obliquity sensor, the angle rotated for measuring the body of a gun 142 in vertical direction.Specifically, Azimuth sensor and obliquity sensor are all set in gun breech 146.
Referring to Fig. 3, in some embodiments, plinker further includes laser emitter 11, laser emitter 11 is set to Pipette tips 144, the central axes ordinary mail of light beam and 142 longitudinally of the body of a gun that laser emitter 11 emits, and light beam can project screen On curtain 20.Due to needing to manually adjust the position of cursor on screen 20 in the initial position for determining plinker so that cursor one is opened Begin corresponding with plinker position, in order to subsequent corresponding mobile, the setting of laser emitter 11 is so that plinker initial position It is corresponding with cursor more accurate.
In other embodiments, can also be similar with the aiming of conventional gun, first by horizontally and vertically screen 20 of the body of a gun 142 Setting, is then aimed at from gun breech 146, the cursor on the quasi- heart and screen 20 to correspond to plinker.It is, of course, preferable to be Laser emitter 11 is set, and existing error is larger if artificial observation.
Referring to Fig. 1, a kind of interactive play structure 100, including control host (not shown), be separately connected with control host Plinker 10 and screen 20, plinker 10 include support component 12, ontology 14, first sensor (not shown), second sensing Device 16 and 3rd sensor 18.The specific structure of the plinker 10 is as described in above-described embodiment, and so it will not be repeated.
Referring to Fig. 4, the technical solution of the plinker 10 provided to facilitate the understanding of the present invention, a kind of game presented below The method that rifle 10 and control host realize connection, how to be attached with control host and screen 20 to plinker 10 It is bright, method includes the following steps:
S110, mobile support component 12 is to adjust 14 position of ontology, so that 142 longitudinally central axes of the body of a gun are perpendicular to screen Curtain 20.
Specifically, the position for adjusting ontology 14 by mobile support component 12 first, is placed on distance for ontology 14 20 a certain distance of screen and the position for being suitble to operation;
S120, rotate ontology 14 so that pipette tips 144 towards the central axes of screen 20 and 142 longitudinally of the body of a gun perpendicular to Screen.
Specifically, it is determined that adjusting ontology 14 after distance of the ontology 14 apart from screen 20, that is, ontology 14 is rotated, so that the body of a gun The central axes normal to screen 20 of 142 longitudinallies, the location of ontology 14 is initial position at this time.
S130 opens laser emitter, forms the first luminous point on the screen.
Specifically, ontology 14 is in initial position at this time, and pipette tips 144 are directed towards screen 20, opens laser emitter 11, The light beam that laser emitter 11 issues forms the first luminous point on the screen 20.
Cursor is moved to the position being overlapped with the first luminous point, presses demarcating key by S140.
Specifically, plinker is to be connected at the very start with control host by conducting wire, and control host adjustment screen The cursor of curtain 20 can be through mouse movement, be also possible to control the shifting of cursor by keypad by starting up mouse key It is dynamic.And demarcating key can be a key being separately provided, and be also possible to the Macintosh of other key combinations, such as 13 He of trigger Another key is pressed simultaneously, is that there is also origins in order to correspond to the cursor on screen 20 when ontology 14 is in initial position, really After setting the point, it can be established with the origin and establish a plane coordinate system on the screen 20, and then can be by 14 two sides of ontology To rotation correspond to cursor in the displacement of both direction.
S150 rotates ontology 14, forms the second luminous point at another place of screen 20.
Specifically, laser emitter is not turned off, and the rotation of ontology 14 will drive the rotation of laser emitter.Rotate ontology 14, it can be random rotation, be also possible to go to a point determined, but need ontology 14 on first axle and second axis There is rotation, the light beam for emitting laser emitter 11 projects another place on screen 20 and forms the second luminous point.
Cursor is moved to the position being overlapped with the second luminous point, presses demarcating key by S160.
Specifically, move mode is not as described above, repeating.
Step S140, S150 and S160 is the crucial step of comparison, is the movement for the rotation and cursor that allow ontology 14 Establish connection.Wherein S140 is as described above, be in order to which the initial position of ontology 14 associates with the origin of cursor.S150 and S160 is then the moving direction for the rotation direction and cursor for being associated with ontology 14, is associated with the rotation direction and screen 20 of plinker herein The moving direction of upper cursor is exactly because the angle that first sensor and second sensor 16 measure has two angles of positive and negative rotation Degree, and in order to will confirm that the two kinds of angles of sensor measurement out respectively correspond the moving direction of cursor.For example, at the first luminous point In the geometric center of screen 20, the second luminous point is located at the corner in 20 upper right side of screen, that is, plinker is lifted and turned right Dynamic direction and cursor on screen 20 turn right the mobile direction in top carry out it is corresponding.
Being associated between mobile with cursor is rotated to ontology 14 from mathematical angle to be illustrated, and is started with the rotation of ontology 14 Center is that origin establishes a space coordinates, thirdly axis is parallel to the first axle and the second axis and vertical direction of horizontal plane respectively Third axis, ontology 14 be it is rotatable around first axle and third axis, screen 20 is parallel to where first axle and third axis Plane setting, the rotation of ontology 14 just seems is arranged one around a mobilizable straight line of fixed point in space, and on screen 20 Track when being exactly the activity of the straight line with 20 intersection point of screen of the motion track of cursor.Accordingly it is also possible to build on the screen 20 It is vertical that with plane coordinate system, the coordinate system includes the 4th axis and the 5th axis, and the 4th axis is the orthographic projection of first axle on the screen 20, 5th axis is the orthographic projection of third axis on the screen 20, and the origin of the corresponding plane coordinate system is exactly that space coordinates origin exists Orthographic projection on screen 20, it may also be said to be the location of cursor when ontology 14 is in initial position.In this way, ontology 14 is around The rotation of one axis has corresponded to movement of the cursor on the 4th axis, and ontology 14 has corresponded to cursor the 5th around the rotation of third axis Movement on axis, and the movement of the other positions of ontology 14 also has corresponding motion track in plane coordinate system.
The above method has only determined the origin of ontology 14 initial position and cursor, and is associated with the rotation side of ontology 14 To and cursor moving direction, referring to Fig. 5, the pass of the moving distance of the rotational angle and cursor of ontology 14 in order to facilitate understanding System, is below illustrated the localization method of plinker, which includes the next steps:
S210, obtain when pipette tips are towards the central axes normal to screen of screen and body of a gun longitudinally described in the first sensing Distance of the device away from screen.
The step is carried out after pressing demarcating key for the first time, that is to say, that pressing demarcating key for the first time will start first Sensor, to carry out the detection of distance.
S220 obtains the body of a gun around the first rotational angle of first axle.
S230 obtains the body of a gun around the second rotational angle of second axis.
Specifically, second sensor 16 is azimuth sensor, and 3rd sensor 18 is obliquity sensor.In order to calculate Displacement of the cursor on corresponding axis in above-mentioned plane coordinate system, it is therefore desirable to be calculated separately and be gone on a tour by two above-mentioned steps The angle that rifle of playing is rotated around first axle and second axis, and two sensors can measure the angle change of positive and negative both direction, It is exactly that two sensors rotational angle in rotation direction difference divides positive and negative values for popular.
S240, distance, the first rotational angle and the second rotational angle according to above-mentioned first sensor away from screen 20 Determine the moving distance of onscreen cursor.
It has been described in detail in circular above-described embodiment.
S250, the size and resolution ratio and the body of a gun for obtaining screen around first axle rotate the first rotational angle and around the second axis The rotation time that line rotation second angle is spent.
Specifically, control host first obtains the size and resolution ratio of screen 20, and calculate the pixel of screen 20 away from, with The transverse direction of screen 20 can be obtained with the lateral dimension of screen 20 away from for divided by the lateral resolution of screen 20 for horizontal pixel point Pixel away from.It should be noted that the acquisition of rotation time is substantially that turn to another location from a certain position be colored to the body of a gun The time taken, when the body of a gun is rotated around first axle and second axis simultaneously, the rotation time of both direction is identical, and is worked as It is then the rotation time for obtaining the body of a gun and rotating the first rotational angle around first axle, the body of a gun when body of a gun is only rotated around first axle Only similarly around second axis rotation.
S260 calculates the corresponding pixel quantity of cursor moving distance according to size and resolution ratio.
Namely measuring the moving distance of cursor on the screen 20 by the above method can obtain away from after divided by pixel The quantity of corresponding pixel out.
S270 calculates cursor moving speed according to pixel quantity and rotation time.
Determine pixel quantity and rotation time after the then speed mobile by control Framework computing cursor.Herein It needs to explain, the movement of cursor is actually the process of position mutation, i.e. cursor goes out suddenly from the pixel Another pixel is now arrived, the mobile speed of cursor is exactly the numerical value of the pixel passed through the unit time, and being mutated is to pass through control What the instruction of host processed was directly specified, and in order to avoid seeing ghost when cursor is mobile, it needs the position detection brush of plinker New rate accomplishes at least 10HZ, that is to say, that second sensor 16 is ten detections of progress per second with 3rd sensor 18, so that often One sensor, at least ten data per second that export are handled to control host.
S280 issues move, to control the movement of cursor.
The movement of cursor is that needs are mobile by just can be carried out after control host sending move.
Compared with prior art, interactive play structure provided by the invention, plinker and its localization method at least have with Lower advantage:
1) by the way that support component is arranged game gun body can be rotated in a fixed point around first axle and second axis, together When setting three sensors obtains respectively apart from and angle-data, then calculated by control host, by game gun body Rotation accurately corresponds to the moving direction and distance of onscreen cursor, it is ensured that the accuracy rate of positioning, while structure is simple, cost It is lower, it is suitble to promote;
2) setting of support component compared to the plinker of traditional high-freedom degree, is not necessarily to so that plinker has support It is entirely picked up, so that user is more laborsaving when using for a long time.
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention Range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (11)

1. a kind of plinker, it is connected with control host, which is characterized in that the plinker includes:
Support component;
Ontology including the body of a gun and is fixedly connected on the pipette tips of described body of a gun one end;
The body of a gun is connected to one end of the support component, and can be rotated around first axle and second axis;
First sensor is set to the ontology, works as the pipette tips towards screen and the body of a gun longitudinally for measuring Distance of the first sensor away from screen when the normal to screen of central axes;
Second sensor is set to the ontology, the first angle of rotation rotated for measuring the body of a gun around the first axle Degree;
3rd sensor is set to the ontology, the second angle of rotation rotated for measuring the body of a gun around the second axis Degree;
Wherein, the first axle is perpendicular to the second axis.
2. plinker according to claim 1, which is characterized in that the support component includes Non-slip material, first support bar And second support bar, first support bar are fixedly connected on the side of the Non-slip material, the second support bar with described first Strut is arranged in parallel, and the second support bar is slidably connected to described first along the first support bar longitudinally Strut, close to or far from the Non-slip material;
The body of a gun is connected to one end far from the Non-slip material of the second support bar.
3. plinker according to claim 2, which is characterized in that the first support bar and the second support bar are coaxial Setting, and the first support bar offers slideway, the second support bar is slidably disposed in the slideway.
4. plinker according to claim 2, which is characterized in that the support component further includes locking member, the locking Part is arranged in the first support bar, and is connected to the second support bar, for making the second support bar relatively described One support rod is fixed.
5. plinker according to claim 1, which is characterized in that the plinker further includes laser emitter, described to swash Optical transmitting set is set to the pipette tips, and the light beam of the laser transmitter projects and the central axes of the body of a gun longitudinally are flat Row, and the light beam can project screen.
6. plinker according to claim 1, which is characterized in that the first sensor is ultrasonic sensor, described Second sensor is azimuth sensor, and the 3rd sensor is obliquity sensor.
7. a kind of interactive play structure, which is characterized in that including control host, with the screen that is separately connected of control host and Plinker;
The plinker includes:
Support component;
Ontology including the body of a gun and is fixedly connected on the pipette tips of described body of a gun one end;
The body of a gun is connected to one end of the support component, and can be rotated around first axle and second axis, the first axle Line and the second axis are respectively perpendicular to the central axes of the body of a gun longitudinally;
First sensor is set to the ontology, works as the pipette tips towards the screen and the body of a gun lengthwise side for measuring To central axes perpendicular to the screen when distance of the first sensor away from the screen;
Second sensor is set to the ontology, the first angle of rotation rotated for measuring the body of a gun around the first axle Degree;
3rd sensor is set to the ontology, the second angle of rotation rotated for measuring the body of a gun around the second axis Degree;
The control host is for the distance according to the first sensor away from the screen, first rotational angle and described Second rotational angle determines the moving distance of the onscreen cursor;
Wherein, the first axle is perpendicular to the second axis.
8. a kind of plinker localization method is applied to plinker described in any one of claims 1-6, which is characterized in that described Plinker localization method the following steps are included:
Obtain when the pipette tips are towards the central axes normal to screen of screen and the body of a gun longitudinally first sensor away from The distance of screen;
Obtain first rotational angle of the body of a gun around the first axle;
Obtain second rotational angle of the body of a gun around the second axis;
Distance, first rotational angle and second rotational angle according to the first sensor away from screen determine screen The moving distance of upper cursor.
9. localization method according to claim 8, which is characterized in that the localization method further comprises the steps of:
The size and resolution ratio of acquisition screen and the body of a gun are around first axle rotation first rotational angle and around institute It states second axis and rotates the rotation time that second rotational angle is spent;
The corresponding pixel quantity of moving distance for calculating the cursor according to size and resolution ratio;
The movement speed of cursor is calculated according to the pixel quantity and the rotation time.
10. a kind of control host, including memory and processor, the memory are stored with computer program, which is characterized in that The processor realizes the step of plinker localization method of claim 8 or 9 when executing the computer program.
11. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of plinker localization method described in claim 8 or 9 is realized when being executed by processor.
CN201811427509.9A 2018-11-27 2018-11-27 Plinker and its localization method, interactive play structure and control host Pending CN109621392A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811427509.9A CN109621392A (en) 2018-11-27 2018-11-27 Plinker and its localization method, interactive play structure and control host

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811427509.9A CN109621392A (en) 2018-11-27 2018-11-27 Plinker and its localization method, interactive play structure and control host

Publications (1)

Publication Number Publication Date
CN109621392A true CN109621392A (en) 2019-04-16

Family

ID=66069763

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811427509.9A Pending CN109621392A (en) 2018-11-27 2018-11-27 Plinker and its localization method, interactive play structure and control host

Country Status (1)

Country Link
CN (1) CN109621392A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112619142A (en) * 2020-12-29 2021-04-09 珠海金山网络游戏科技有限公司 Target object control method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020012898A1 (en) * 2000-01-13 2002-01-31 Motti Shechter Firearm simulation and gaming system and method for operatively interconnecting a firearm peripheral to a computer system
CN101804254A (en) * 2009-02-12 2010-08-18 季昱 Simulation sniping gun and method for simulating toy sniping gun

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020012898A1 (en) * 2000-01-13 2002-01-31 Motti Shechter Firearm simulation and gaming system and method for operatively interconnecting a firearm peripheral to a computer system
CN101804254A (en) * 2009-02-12 2010-08-18 季昱 Simulation sniping gun and method for simulating toy sniping gun

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
公安部装备财务局,公安部第一研究所编著: "《警用武器实用手册》", 31 May 2016 *
刘龙江主编: "《机电一体化技术 第2版》", 31 July 2012 *
田原主编: "《计算机导论》", 31 July 2001 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112619142A (en) * 2020-12-29 2021-04-09 珠海金山网络游戏科技有限公司 Target object control method and device
CN112619142B (en) * 2020-12-29 2022-09-02 珠海金山数字网络科技有限公司 Target object control method and device

Similar Documents

Publication Publication Date Title
US10828536B2 (en) System comprising ball with embedded sensor
CN103604427B (en) UAS and method to ground moving target dynamic location
CN105300181B (en) It is a kind of can pre-tip shooting accurate photoelectronic collimating device and its adjusting process
US20150133024A1 (en) Ball and entertainment system
CN102441277B (en) Multi-purpose game controller, system and method with posture sensing function
CN103713746B (en) The input method of three-dimensional inertia remote control unit and three-dimensional inertia remote control unit
CN103597426B (en) Air pointing device and air pointing method
WO2015199780A9 (en) Mobile ballistics processing and targeting display system
CN112229371A (en) Laser rangefinder with improved display
CN101378812A (en) Rangefinding devices and methods for golfing
US10709975B2 (en) Systems and methods for manipulating a virtual object
CN106823329B (en) A kind of basketball movement trajectory track system
CN105300184B (en) A kind of photoelectronic collimating device that three-dimensional localization and display can be carried out to object
CN107466384A (en) A kind of method and device for following the trail of target
CN109621392A (en) Plinker and its localization method, interactive play structure and control host
CN101282411A (en) Control apparatus, video unit containing the same and control method thereof
CN103472846B (en) A kind of sun acquisition method based on multiple solar cell piece
KR101401384B1 (en) System and method for golf game
CN114730221A (en) Three-dimensional input device and screen control method using the same
CN208284105U (en) Based on virtual reality and sterically defined distributed collaboration loading training simulation system
CN101799725A (en) Control method, device and system thereof
CN108225293A (en) A kind of automatic laser verticality measurer and verticality measuring method
KR102166177B1 (en) Green information providing system of golf
CN106774941B (en) Touch screen terminal 3D virtual role moves the solution to conflict with scene camera
CN109213154A (en) One kind being based on Slam localization method, device, electronic equipment and computer storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190416