3
votes

- 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, 11:15
Idea status: under consideration

Comments

Nobody commented on this idea

Leave a comment

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