- TK: get object(s) whose shape contains point

TKMap(Node) should have these methods:

-(TKObject*) objectAt:(CGPoint)locationInMap;
-(NSArray*) objectsAt:(CGPoint)locationInMap;

Returning the object(s) whose shape (rectangle, polygon, ellipse) contains the point (in the map's coordinate space). This allows for touch/click detection of objects as well as triggering game events when the location is a position of a character on the map (ie player walks over polygon object which emits a sound effect).

Author: sitterheim, 26.09.2015, 12:15
Idea status: under consideration


Nobody commented on this idea

Leave a comment

Copyright - 2018 Informer Technologies, Inc. All Rights Reserved. Feedback system is used Idea.Informer.com