Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: SERG__ZV on January 03, 2014, 03:10:08 PM

Title: How add torque in axis direction to another object
Post by: SERG__ZV on January 03, 2014, 03:10:08 PM
I have ball (rightbody object) & follow for him another object. In motion ball rotate. I can't add torque ball because axis every time change. I can't add torque in global coordinates because when I want to turn for example to the right axis should exchange respectively view camera which turned with the object Followed behind the ball. But I could copy the line of sight Followed object & add torque ball in him (followed object) local space axis. Such as
move forwards, move back, move left, move right. Question how do i do in playmaker ?
Title: Re: How add torque in axis direction to another object
Post by: SERG__ZV on January 05, 2014, 06:02:04 AM
it seems that it is time to learn C #  :)
Title: Re: How add torque in axis direction to another object
Post by: cwmanley on January 05, 2014, 11:59:12 AM
Hello,

You might be looking for the Transform Direction Action.

Have you checked out the Marble Game example?
https://hutonggames.fogbugz.com/default.asp?W881

Also, this post might be helpful.
http://hutonggames.com/playmakerforum/index.php?topic=5065.0

Title: Re: How add torque in axis direction to another object
Post by: jeanfabre on January 06, 2014, 08:54:33 AM
Hi,

 Good links to check.

 Also, don't add torque, simply add a force that points to your target. the result will be the same.


bye,

 Jean
Title: Re: How add torque in axis direction to another object
Post by: Lane on January 06, 2014, 09:49:18 AM
http://wiki.unity3d.com/index.php/TorqueLookRotation

If you want to apply torque to look at something, the method is basically that.