About Store Forum Documentation Contact
Donations:
309$/mo



Post Reply 
Which func to Picking World Objects?
Author Message
SamNainocard Offline
Member

Post: #1
Which func to Picking World Objects?
I want to know an advantage of these function when picking world objects, and which one should I use for certain scenario.

I have tried these func and these are results from a small test.

World.objGet() / World.objGetAdd()
Uses OBJ_TYPE, IndexToFlag not allowed?
This will only pick object if object's position (center) is within picking shape.

PhysCutsCallback with Physics.cut and/or Actor.cut
Uses AG_GROUP, IndexToFlag allowed.
This will pick object if their actor are cut with picking shape, also allows PhysCutsCallback method overriding for extra filters. OBox shape also allowed.

Maybe there's other way as well, but I found
I'm currently use Physics.cut, which I think it's more versatile for overall use.
10-29-2013 05:07 AM
Find all posts by this user Quote this message in a reply
Post Reply