playMaker

Author Topic: Controlling Edy's Vehicle Physics with Playmaker & NGUI  (Read 3635 times)

derkoi

  • Full Member
  • ***
  • Posts: 187
Controlling Edy's Vehicle Physics with Playmaker & NGUI
« on: September 09, 2012, 10:10:45 AM »
So i figured on my 'day off' from game development I'd have a play around with some....game development.  ;D ::)

Anyways, I'm trying to make a mobile car game with Edy's Vehicle Physics (tried UnityCar 2.0 too) which both work with arrow keys.

I've made a NGUI button for accelerate and brake pedals. I figured using NGUIs OnPress I'd set the 'motorInput' float to 1 using set property action, then to 0 when I release the button.

Nothing happens in Edy's Vehicle Physics, and the car revs like crazy in UnityCar but doesn't move.

So, since both of these work really well with the arrow keys, is it possible for playmaker to 'press' the arrow keys in an action? So I could set any NGUI button that presses any keyboard key.

Hope that makes sense... ::) :P

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Controlling Edy's Vehicle Physics with Playmaker & NGUI
« Reply #1 on: September 10, 2012, 03:37:03 AM »
Hi,

 Yes, basically, this would likely require scripting editing. But I am not sure how edy's framework is working as I don't own it. PM me so that we can arrange something,

bye,

 Jean

derkoi

  • Full Member
  • ***
  • Posts: 187
Re: Controlling Edy's Vehicle Physics with Playmaker & NGUI
« Reply #2 on: September 10, 2012, 03:39:29 AM »
Thanks, PM'd  :)