xordiumm
(xordium)
November 5, 2023, 12:02pm
#1
okay so ive been trying for about 2 hours to figure out good velocity ranges for shell ejection for a gun system im making, if you have any ideas please let me know!
bulletClone.Velocity = Vector3.new(0, math.random(8, 23), math.random(-5, 5))
bulletClone.RotVelocity = Vector3.new(0, math.random(50, 300), 0)
the best i got is above, but all it does is fall down to the ground instead of fly to the right
1 Like
I forgot if it had to be anchored or not but, is it anchored?
xordiumm
(xordium)
November 5, 2023, 12:18pm
#3
nope, its not anchored so im just using velocity
Try to anchor it before using velocity
i think ApplyImpulse could be useful here
xordiumm
(xordium)
November 5, 2023, 12:24pm
#6
Why? its not that its just the ranges are too weak and i cant get it good enough
is it in a loop? if not, try adding it into a stepped loop (velocity resets every tick)
if this doesn’t work, try using a BodyVelocity or a LinearVelocity as these classes maintain a constant velocity
xordiumm
(xordium)
November 5, 2023, 12:43pm
#8
it is working, i just dont know how to make it go up and along if that makes sense, like how a real gun ejects shells