Advertisement
otorp2

rot from node2d

Nov 14th, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. then set_rot()
  2. <ducklin5> make a script in the root of the scene
  3. <ducklin5> in this node the global variables will be made
  4. <ducklin5> 1 global variable will get the rotation of the gun
  5. <n-pigeon> otorp2, option nr 1 add instance of the bullet to first node and get set global transform from barrel to bullet
  6. <ducklin5> then you go to your bullet and you get the global variable and set it as the bullets rotation
  7. * captain_morgan has quit (Ping timeout: 240 seconds)
  8. <n-pigeon> option nr 1 add instnce to barrel but move it using set_global_transform()
  9. <n-pigeon> nr2*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement