playMaker

Author Topic: Shooting game objects.  (Read 2645 times)

shinodan

  • Full Member
  • ***
  • Posts: 180
    • View Profile
    • Shinozone
Shooting game objects.
« on: April 06, 2012, 01:55:28 PM »
Im a little confused and ive looked all over the forum but i cant find anything on this.

i thought that if i made my shoot button spawn a bullet and gave it force it would work but im clueless.
can anyone explain how to do this please?

allo888

  • Playmaker Newbie
  • *
  • Posts: 24
    • View Profile
Re: Shooting game objects.
« Reply #1 on: April 06, 2012, 06:21:43 PM »
is the force in the right direction? if it is sorry for being a time waister 

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3893
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: Shooting game objects.
« Reply #2 on: April 06, 2012, 07:00:15 PM »
Checkout PlaymakerSamples/TestLab/Physics/ThrowGrenade sample scene

Check the direction and amount of force.

You might also want to turn off gravity on the bullet's rigid body.

If the bullet is really fast/instant you might want to use a Mouse Pick or Raycast instead.