Patent ID: 11819763

Abstract:
Embodiments of this disclosure describe a method and an apparatus for controlling a virtual object to interact with a projectile, and a storage medium, and belong to the field of computer technologies. The method includes: controlling the virtual object to pick up the projectile in a virtual scene; determining a position of the projectile as an initial position, and determining a shooting direction of a camera of the virtual scene as a throwing direction of the projectile; determining a motion trajectory of the projectile according to the initial position, the throwing direction, an initial throwing speed of the projectile, and a motion law of an object under an influence of gravity acceleration, so that the motion trajectory is a curve conforming to the motion law; and displaying, in the virtual scene, the motion trajectory. The determined motion trajectory takes into account the influence of gravity, and conforms to the motion law of an object under the influence of gravity acceleration, so that accuracy is improved, and an effect of simulating a realistic scene can be achieved.