playMaker

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

Dmonty

  • Playmaker Newbie
  • *
  • Posts: 7
    • View Profile
Raycasting and first person interaction
« on: January 05, 2020, 07: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: 4818
    • View Profile
    • jinxtergames
Re: Raycasting and first person interaction
« Reply #1 on: January 06, 2020, 08: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
    • View Profile
Re: Raycasting and first person interaction
« Reply #2 on: January 06, 2020, 04: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,