MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / moveActor

Method moveActor

physx/samples/samplebase/Picking.cpp:232–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230//----------------------------------------------------------------------------//
231
232void 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

Callers

nothing calls this directly

Calls 3

PxTransformClass · 0.50
PxQuatClass · 0.50
setKinematicTargetMethod · 0.45

Tested by

no test coverage detected