dongju.jeong Posted May 29, 2019 Posted May 29, 2019 Can I draw a non-straight-line intersection line at once? Currently, the intersection function seems to be able to specify only two points.
morbid Posted May 30, 2019 Posted May 30, 2019 Hello Dongju, Yes, intersection ray is cast from one point to another, it can't be represented as a broken line. May I ask you why do you need the decribed solution? Thanks. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
dongju.jeong Posted May 30, 2019 Author Posted May 30, 2019 I tried to make a checkable line by following the movement of my hand because of my need. I tried to use the bone points to create a changing collision line, but if one intersection is not possible, I'll create multiple intersections to create logic.
dongju.jeong Posted June 4, 2019 Author Posted June 4, 2019 Can I use multiple getIntersection() function by one WorldIntersectionPtr variable? Or is it only one-to-one matching? I am currently using intersection like this sample. //-------------- ObjectPtr o; WorldIntersectionPtr wi = WorldIntersection::create(); o=World::get()->getIntersection(hand->getWorldBoneTransform(1).getTranslate(), hand->getWorldBoneTransform(2).getTranslate(), 1,wi); if (o) value |= 0x00000001 | 0x00000002; o = World::get()->getIntersection(hand->getWorldBoneTransform(2).getTranslate(), hand->getWorldBoneTransform(3).getTranslate(), 1, wi); if (o) value |= 0x00000001 | 0x00000002;
alexander Posted June 4, 2019 Posted June 4, 2019 Hi Dongju, Can I use multiple getIntersection() function by one WorldIntersectionPtr variable? Yes, of course! WorldIntersection is used for result only. getIntersection() doesn't read any information from it. Best regards, Alexander 1
Recommended Posts