Method, computer device, and storage medium for virtual object switching
AssigneeTencent Technology (Shenzhen) Company Limited
InventorHuifei BAO
Life of this patent
Estimating the term…
Abstract
A virtual object switching method includes displaying a first virtual object in a locked state and a second virtual object not in a locked state, the locked state indicating a locked virtual object becoming an action target of a main control virtual object; receiving a swing operation, the swing operation including an operation for swinging a body of the mobile terminal; and switching from the first virtual object in the locked state to the second virtual object to be in a locked state, when the swing operation matches the second virtual object.
Claims20
A virtual object switching method, performed by a mobile terminal, the method comprising:
- displaying a first virtual object in a locked state in a virtual environment, the locked state indicating a locked virtual object becoming an action target of a main control virtual object;
- detecting a swing operation that swings a body of the mobile terminal, including:
- determining a swinging direction and a swing kinematic parameter of the swing operation;
- determining, using the first virtual object as a reference position in the virtual environment, one or more candidate virtual objects in the swing direction that are not in the locked state;
- in response to a first quantity of the one or more candidate virtual objects being one, determining the one candidate virtual object as a second virtual object;
- in response to the first quantity being greater than one, determining, from the one or more candidate virtual objects, the second virtual object based on a value of the swing kinematic parameter and distances between the one or more candidate virtual objects and the first virtual object;
- and
- switching from the first virtual object in the locked state to the second virtual object to be in a locked state.
A computer device, comprising:
- a processor and a memory, the memory storing a computer program, and the computer program being loaded and executed by the processor to implement:
- displaying a first virtual object in a locked state in a virtual environment, the locked state indicating a locked virtual object becoming an action target of a main control virtual object;
- detecting a swing operation that swings a body of the mobile terminal, including:
- determining a swinging direction and a swing kinematic parameter of the swing operation;
- determining, using the first virtual object as a reference position in the virtual environment, one or more candidate virtual objects in the swing direction that are not in the locked state;
- in response to a first quantity of the one or more candidate virtual objects being one, determining the one candidate virtual object as a second virtual object;
- in response to the first quantity being greater than one, determining, from the one or more candidate virtual objects, the second virtual object based on a value of the swing kinematic parameter and distances between the one or more candidate virtual objects and the first virtual object;
- and
- switching from the first virtual object in the locked state to the second virtual object to be in a locked state.
A non-transitory computer-readable storage medium for storing a computer program, the computer program being loaded and executed by a processor to implement:
- displaying a first virtual object in a locked state in a virtual environment, the locked state indicating a locked virtual object becoming an action target of a main control virtual object;
- detecting a swing operation that swings a body of the mobile terminal, including:
- determining a swinging direction and a swing kinematic parameter of the swing operation;
- determining, using the first virtual object as a reference position in the virtual environment, one or more candidate virtual objects in the swing direction that are not in the locked state;
- in response to a first quantity of the one or more candidate virtual objects being one, determining the one candidate virtual object as a second virtual object;
- in response to the first quantity being greater than one, determining, from the one or more candidate virtual objects, the second virtual object based on a value of the swing kinematic parameter and distances between the one or more candidate virtual objects and the first virtual object;
- and
- switching from the first virtual object in the locked state to the second virtual object to be in a locked state.
Dependencies are inferred from the claim text.