Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 16/10/22 in all areas

  1. https://payhip.com/b/DJHOB Any question contact me on Discord: TheDarkQ#1707
    1 point
  2. Setting their initial velocity appears to work mostly, however, missiles gain speed very quickly on their own, try spawning one with 0 initial velocity, to a speed between 0.5 to 2 greater than target speed - I've tested with the target aircraft at default max speed of 1.5, the missiles follow with just around 2.8 speed. If the target aircraft is at speed 3, missiles follow it with velocity of up to 4.5. If you want to target a missile at a particular location, you can, as you said yourself, calculate that from two positions: local initialPosition = Vector3(0, 0, 0) local targetPosition = Vector(300, 300, 0) local differenceVector = targetPosition-initialPosition local directionVector = differenceVector.normalized local missileInitialSpeed = 1 local missileDirectionVector = directionVector * missileInitialSpeed You do not necessarily need any callbacks, you can change any element's velocity at any point. If you want to implement your own guidance system, you can adjust missile positions on the client side every frame, every 2 frames, etc. with onClientRender and either a loop of all missiles, a loop of missiles in a table, or just selecting a particular missile with single variable. Projectiles can also store element data if necessary.
    1 point
×
×
  • Create New...