Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Dev_Sebas on September 01, 2011, 06:07:16 PM

Title: Add force not working [SOLVED]
Post by: Dev_Sebas 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


Title: Re: Add force not working
Post by: tim.holman 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).
Title: Re: Add force not working
Post by: Dev_Sebas 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
Title: Re: Add force not working
Post by: Dev_Sebas on September 04, 2011, 05:09:55 PM
Please if some people have some time help me. :'(
Bye
Title: Re: Add force not working
Post by: Alex Chouls 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...
Title: Re: Add force not working
Post by: Dev_Sebas 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
Title: Re: Add force not working
Post by: Dev_Sebas 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
Title: Re: Add force not working
Post by: Dev_Sebas on September 08, 2011, 04:11:01 PM
Please help me :'(
Bye
Title: Re: Add force not working
Post by: Dev_Sebas on September 11, 2011, 04:00:53 PM
Bump
Title: Re: Add force not working
Post by: Alex Chouls 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.
Title: Re: Add force not working
Post by: Dev_Sebas on September 12, 2011, 10:28:30 AM
Send
Bye
Title: Re: Add force not working
Post by: Alex Chouls 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.
Title: Re: Add force not working
Post by: Dev_Sebas on September 12, 2011, 07:14:52 PM
Very very much thanks Alex  ;D ;D ;D ;D ;D
I love this community
Bye