Decide whether a path pattern selects an object path.
A path is the names from the scene down to an object, joined by /. A pattern is read segment by segment: * stands for any run of characters inside one name, and a segment that is exactly ** stands for any number of names, none included. Letter case counts.
A pattern without / selects an object when any one name on its path matches, so head finds the head wherever it sits in the hierarchy and takes everything beneath it. A pattern with / is matched from the first name of the path, and selects the object it reaches and everything beneath that object.
Pattern
Selects
hero
Every object named hero and everything beneath one
Decide whether a path pattern selects an object path.
A path is the names from the scene down to an object, joined by
/. A pattern is read segment by segment:*stands for any run of characters inside one name, and a segment that is exactly**stands for any number of names, none included. Letter case counts.A pattern without
/selects an object when any one name on its path matches, soheadfinds the head wherever it sits in the hierarchy and takes everything beneath it. A pattern with/is matched from the first name of the path, and selects the object it reaches and everything beneath that object.heroheroand everything beneath one*arm*armhero/torsohero/torsoand everything beneath ithero/*hero**An empty pattern throws.