Playmaker Forum

PlayMaker News => General Discussion => Topic started by: Dmonty on January 05, 2020, 09:10:06 PM

Title: Raycasting and first person interaction
Post by: Dmonty 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.
Title: Re: Raycasting and first person interaction
Post by: djaydino 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
Title: Re: Raycasting and first person interaction
Post by: Dmonty 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,