Playmaker Forum
PlayMaker News => General Discussion => Topic started by: emmcd3 on July 04, 2016, 08:46:25 PM
-
Hi,
Familiar with how the mechanics and code in C# ...works and going along fine. Just curious how to implement in PM. Got as far as the vectors banging out a nice big number, but, that's nowhere really. Ah, so, I'm just trying get it into in a tidy FSM with use case being a detection of local Z orientation to approximate whether I(player) am with an opponents FOV. As mentioned, okay with C#, just unsure what PM actions would be necessary for the vector inputs in PM.
Thanks much.
-
Hi,
if you have the line of code in c# to do this, I'll make an fsm template for you.
Bye,
Jean
-
Appreciate it much.
I've enclosed the snippet and a visual of the interaction. In the pic will one GO (bottom) recognizes another GO(top) as being in LOS contact. In something more realistic there 100 meters or more separating them as well as several contacts. The bottom would sequence through the list of contacts and modify a threat evaluation method with a float which would help with determining the likelihood of being in the FOV of the enemy.
The mosaic is just a helper routine used from a cover system. Sorry if a makes a bit confusion. One ray horizon is coming from each GO and projecting outwards in an arc of ~ 70 degrees.
Thanks
-
If I were to use the Vector3 Operator FSM and replace the vector3 variable reference with one for a transform.forward reference , what would the be in PM parlance? Is does seem as simple as that. Give me a clue and I can go forward from there unless there is something else I'm missing.
Thanks and cheers