playMaker

Author Topic: AddForce Vector3.Forward [SOLVED]  (Read 1680 times)

koop4

  • Playmaker Newbie
  • *
  • Posts: 5
AddForce Vector3.Forward [SOLVED]
« on: March 04, 2014, 05:48:39 AM »
hi there,
I have a prefabs Rocks, and i generate it from a FSM attached to another object.
The prefabs, has a FSM too, that should allow the rock to start rolling when created.
I noticed that there are 2 chances:
1) give it an addForce with a Vector specifying x,y,z
2) attach a script to it

what i was wondering is: "is possible to just addForce "vector3.forward" in a simplier way?

Thanks in advance.
« Last Edit: March 04, 2014, 11:04:31 AM by koop4 »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: AddForce Vector3.Forward
« Reply #1 on: March 04, 2014, 06:30:22 AM »
Hi,

 yes, get the forward vector of that gameobject using the action "Transform direction". Define the local direction as the axis you want, and then you will have your force direction.

bye,

 Jean