Revision 38cabd94
Added by Leszek Koltunski over 1 year ago
src/main/java/org/distorted/bandaged/BandagedCreatorTouchControl.java | ||
---|---|---|
192 | 192 |
Static4D touchPoint = new Static4D(x, y, 0, 0); |
193 | 193 |
Static4D rotatedTouchPoint= QuatHelper.rotateVectorByInvertedQuat(touchPoint, quat); |
194 | 194 |
Static4D rotatedCamera= QuatHelper.rotateVectorByInvertedQuat(CAMERA_POINT, quat); |
195 |
|
|
196 | 195 |
boolean touched = objectTouched(rotatedTouchPoint,rotatedCamera); |
197 |
|
|
198 |
if( !touched ) return -1; |
|
199 |
|
|
200 |
return mObject.whichCubitTouched(mTouch); |
|
196 |
return touched ? mObject.whichCubitTouched(mTouch) : -1; |
|
201 | 197 |
} |
202 | 198 |
} |
203 | 199 |
|
Also available in: Unified diff
progress with FactoryBandagedMegaminx.