dongju.jeong Posted May 29, 2019 Share 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. Link to comment
morbid Posted May 30, 2019 Share 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 Link to comment
dongju.jeong Posted May 30, 2019 Author Share 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. Link to comment
dongju.jeong Posted June 4, 2019 Author Share 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; Link to comment
alexander Posted June 4, 2019 Share 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 Link to comment
Recommended Posts