playMaker

Author Topic: Raycasting Problem  (Read 1634 times)

imnotlegion

  • Playmaker Newbie
  • *
  • Posts: 1
Raycasting Problem
« on: October 28, 2014, 02:53:24 PM »
Hi,

I have made a scene using playmaker in which an enemy is patrolling an area and the player has to sneak past him without being seen, but I seem to be having trouble with the raycasting on the enemy because it sees through any object I put between him and the player and triggers the 'detected' state, even if there are multiple colliders that are not the player in front of him. I have messed around with the layer mask and tried changing the wall objects' layers, but it doesn't seem to make any difference... can anyone tell me what the problem might be? I can upload the scene if more information is needed.

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Raycasting Problem
« Reply #1 on: November 03, 2014, 04:09:01 PM »
Do those objects have colliders? Basically you just need to raycast directly at the player with no LayerMask. Anything with a collider will stop the raycast.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D