playMaker

Author Topic: How add torque in axis direction to another object  (Read 3896 times)

SERG__ZV

  • Playmaker Newbie
  • *
  • Posts: 2
How add torque in axis direction to another object
« 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 ?

SERG__ZV

  • Playmaker Newbie
  • *
  • Posts: 2
Re: How add torque in axis direction to another object
« Reply #1 on: January 05, 2014, 06:02:04 AM »
it seems that it is time to learn C #  :)

cwmanley

  • Full Member
  • ***
  • Posts: 107
Re: How add torque in axis direction to another object
« Reply #2 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


jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: How add torque in axis direction to another object
« Reply #3 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

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: How add torque in axis direction to another object
« Reply #4 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.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D