playMaker

Author Topic: Add force not working [SOLVED]  (Read 16449 times)

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Add force not working [SOLVED]
« on: September 01, 2011, 06:07:16 PM »
My "Add force" is not working...
I do not know what happening where.It is all made as "trough grenade" example my prefab have rigidbody and mesh collider but when I shot my bullet falls ( do not have force ) :'(
Bye


« Last Edit: October 05, 2011, 02:04:37 PM by alexchouls »

tim.holman

  • 1.2 Beta
  • Playmaker Newbie
  • *
  • Posts: 49
Re: Add force not working
« Reply #1 on: September 02, 2011, 10:31:42 AM »
Did you make sure "Is Kinematic" is unchecked? Also, you may try playing with the rest of the rigid body variables, and ensure you add a significant amount of force (1000+ depending on mass).

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Re: Add force not working
« Reply #2 on: September 02, 2011, 06:22:47 PM »
"Is Kinematic" was checked and I put unchecked thanks a lot by this Tim :)
But now my bullets says in air floating (seems they don´t have much force for go in front)
Bye any help or idea will be appreciated

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Re: Add force not working
« Reply #3 on: September 04, 2011, 05:09:55 PM »
Please if some people have some time help me. :'(
Bye

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4000
  • Official Playmaker Support
    • LinkedIn
Re: Add force not working
« Reply #4 on: September 04, 2011, 05:20:29 PM »
Can you post a screenshot of your Rigidbody settings? Use png or jpg so it show as an attachment...

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Re: Add force not working
« Reply #5 on: September 04, 2011, 06:14:39 PM »
Hi I have check a small error now in my rigid body "Use Gravity" was not checked and I put checked as "Trough grenade example" but now the bullet falls again ( seems don´t have force ) I put more force and reduce the mass of bullet but it continues don´t working
Bye hope it helps a bit

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Re: Add force not working
« Reply #6 on: September 06, 2011, 07:02:20 PM »
I am trying to find a solution and I think this is easy but it is not working.
Bye

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Re: Add force not working
« Reply #7 on: September 08, 2011, 04:11:01 PM »
Please help me :'(
Bye

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Re: Add force not working
« Reply #8 on: September 11, 2011, 04:00:53 PM »
Bump

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4000
  • Official Playmaker Support
    • LinkedIn
Re: Add force not working
« Reply #9 on: September 11, 2011, 06:30:30 PM »
Not sure what could be wrong... have you tried adapting the ThrowGrenade example?  Email me your project and I'll take a look.

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Re: Add force not working
« Reply #10 on: September 12, 2011, 10:28:30 AM »
Send
Bye

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4000
  • Official Playmaker Support
    • LinkedIn
Re: Add force not working
« Reply #11 on: September 12, 2011, 05:08:38 PM »
You need to store the created bullet object in a variable then add the force to that object.

Make a GameObject variable in the Variables tab and use that in Create Object and Add Force (see attached screenshots).

I think you also need to tweak the alignment of the spawn point...

Also you might consider using a raycast for this type of bullet instead of a rigid body.

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Re: Add force not working
« Reply #12 on: September 12, 2011, 07:14:52 PM »
Very very much thanks Alex  ;D ;D ;D ;D ;D
I love this community
Bye