playMaker

Author Topic: Inside Collider Info  (Read 612 times)

dudebxl

  • Hero Member
  • *****
  • Posts: 602
    • View Profile
Inside Collider Info
« on: November 20, 2015, 10:04:23 AM »
This might be useful for someone.

What does it do? It checks if the gameobject is inside (or partially inside) a collider. Useful for defining areas with colliders.

Example of usage:

Put a collider on an empty gameobject. Set the size of your collider.

1. Am I, a gameobject (renderer or sprite if 2d) inside this collider? Yes, send this event, No send this event.

2. Use with Array tool actions to check if a list of gameobjects are inside a list of colliders. Set a collider(s) as an FsmObject and loop.

on ecosystem or https://snipt.net/dudebxl/

3d version is tested. 2d Version not tested. Any problems, please post here.

mdotstrange

  • Hero Member
  • *****
  • Posts: 549
    • View Profile
    • Can't code? Who cares! Make games anyway!
Re: Inside Collider Info
« Reply #1 on: November 20, 2015, 09:14:03 PM »
Very useful! Thank you!
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!