playMaker

Author Topic: how to write math equation in playmaker  (Read 1379 times)

teenden001@gmail.com

  • Playmaker Newbie
  • *
  • Posts: 10
how to write math equation in playmaker
« on: February 01, 2019, 06:05:51 AM »
i need to write following statement with playmaker

v = Input.GetAxis("Vertical") * 55f * 0.018f;

please help.

Thanx in advance
teen


jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: how to write math equation in playmaker
« Reply #1 on: February 04, 2019, 04:06:27 AM »
Hi,

for this you use the action GetAxis

In Unity, you can write simple math in float fields, so in the Multiplier field, type

55 * 0.018 and press enter, it will compute that operation (0.99)

if you want to change these values at runtime, then use the action FloatOperator for full control.



Bye,

 Jean
« Last Edit: February 04, 2019, 04:09:34 AM by jeanfabre »

teenden001@gmail.com

  • Playmaker Newbie
  • *
  • Posts: 10
Re: how to write math equation in playmaker
« Reply #2 on: February 04, 2019, 04:39:17 AM »
Thanx Jean,

Next problem,
How do i detect gameobject using raycast in playmaker.

infect i have one player. he moves around the floor, when he touches any object, it should identify it. How do i do this?

I am little new to this playmaker, i know it thru coding in C#.


jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: how to write math equation in playmaker
« Reply #3 on: February 05, 2019, 01:52:14 AM »
Hi,

 can you create a new thread for your raycast question? it's best to avoid several topics in one thread.

Bye,

 Jean