RockGodDev
(RockGodDev)
#1
Okay, so I’m sure this issue is me just being oblivious with rotation, but I can’t seem to fix it.
Basically, I’m trying to make it where the part (Railgun Projectile) faces the enemy.
This doesn’t really work though.
Here’s the code:
And this is what happens:
I’m pretty sure this is just me not understanding rotation.
Any help is appreciated, thanks.
1 Like
try just setting the cframe to this .
CFrame.new(origin, destination)*CFrame.new(0,0,0.5*projectileLength)
1 Like
RockGodDev
(RockGodDev)
#3
It goes behind the unit now.
1 Like
whats the * offset at the end maybe thats doing something it shouldnt
1 Like
DataSigh
(DataSigh)
#5
What is your projectiles type?
1 Like
RockGodDev
(RockGodDev)
#6
It was a mesh part, though I just fixed it by rotating the projectile in blender and exporting it that way.
2 Likes
system
(system)
Closed
#8
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.