| 230 | //----------------------------------------------------------------------------// |
| 231 | |
| 232 | void Picking::moveActor(int x, int y) |
| 233 | { |
| 234 | if(!mMouseActor) |
| 235 | return; |
| 236 | |
| 237 | PxVec3 rayOrig, rayDir; |
| 238 | computeCameraRay(rayOrig, rayDir, x, y); |
| 239 | |
| 240 | const PxVec3 pos = rayOrig + mDistanceToPicked * rayDir; |
| 241 | |
| 242 | mMouseActor->setKinematicTarget(PxTransform(pos, PxQuat(PxIdentity))); |
| 243 | } |
| 244 | |
| 245 | //----------------------------------------------------------------------------// |
| 246 |
nothing calls this directly
no test coverage detected