Announcement

Collapse
No announcement yet.

How do I add a ball catching and throwing mechanic?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How do I add a ball catching and throwing mechanic?

    Hello. I am working on a project that can only be described as a mix between Rocket League and Robot Roller-Derby Disco Dodgeball. I need to figure out how to attach a ball actor to a player when the player collides with it and presses the "e" key and launch the ball when the player presses the "e" key again. As far as catching the ball goes, I have tried the following: I tried attaching it to the player itself and spring-arms, but I cannot do these things while the ball is simulating physics (I also tried turning off simulate physics when the player collides with it and presses a key). I assume that creating a throwing script would be simpler once I have a catching script in place but, I am not entirely sure how to do this and any insight on how to create such scripts would be greatly appreciated. Thanks.
Working...
X