Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.35 KB | None | 0 0
  1. public void Impulse_Dot(float Force, Vector3 hit_point, Vector3 bullet_Forward)
  2.     {
  3.        
  4.             foreach (var body in RB)
  5.             {
  6.               //  var bodyPosition = body.transform.position;
  7.              
  8.                 body.AddForceAtPosition(bullet_Forward * Force, hit_point, ForceMode.Acceleration);
  9.             }
  10.    
  11.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement