playMaker

Author Topic: Raycasting toggle.  (Read 1593 times)

Faldown

  • Playmaker Newbie
  • *
  • Posts: 2
Raycasting toggle.
« on: September 13, 2014, 03:04:00 PM »
Hi, i'm new in Playmaker and i created an Items pickup system with raycasting!

I want, create a BOOL variable named "Lookin' the obj" and when i don't look the item the bool will be false, ect... help?

Neoisrael

  • Playmaker Newbie
  • *
  • Posts: 34
Re: Raycasting toggle.
« Reply #1 on: September 13, 2014, 04:03:14 PM »
i think you are going into something complex... define Looking ? is it lookin of the same axis ? or just on the X ? is it lookin on the same X And Z ? its a little bit harder then that...

usualy pickups managed with Trigger that when enter a trigger of the object it gets picked up that way its a lot more easier to manage that...

if u still wanna do with the Lookin Thing... its a bit more complex...
i would define sides to the player and u will need to compare the camera angle the the objects current position...

i think its not the best solution becuse if u will have lots of objects that will be a lot of raycasting that can be quite a borden on the system...

Faldown

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Raycasting toggle.
« Reply #2 on: September 13, 2014, 05:21:24 PM »
 ;) I tried the trigger method...and it's very bugged...