playMaker

Author Topic: Raycasting and first person interaction  (Read 1388 times)

Dmonty

  • Playmaker Newbie
  • *
  • Posts: 7
Raycasting and first person interaction
« on: January 05, 2020, 09:10:06 PM »
Hello everyone!!! I'm really excited to get started with Playmaker and was wondering if someone can answer or give me a direction to go in regarding what I would like to accomplish?


I'd like to create a First person controller where the player can interact with objects using retracing. For example, opening drawer, doors and picking up items like keys or other things.

A perfect example would be the mobile Granny game in the playstore.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: Raycasting and first person interaction
« Reply #1 on: January 06, 2020, 10:41:52 AM »
Hi, i am not sure what you mean by retracing.
But for interacting with objects you can use triggers (collider components, with is trigger enabled)
and for the actions you can use trigger events.
When player is inside trigger then use for example "Get Key Down"

Best is to look and follow some basic tutorials.

you can find some tutorials here :
https://hutonggames.com/tutorials-game-design-with-playmaker.php

Dmonty

  • Playmaker Newbie
  • *
  • Posts: 7
Re: Raycasting and first person interaction
« Reply #2 on: January 06, 2020, 06:12:27 PM »
Hi,

Thank you so much for this example and I'll take a look at it! What I meant by raycasting is when you target an object (FPS style) and activate by using the mouse.

Thanks again,