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

Method letGo

physx/samples/samplebase/Picking.cpp:158–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156//----------------------------------------------------------------------------//
157
158PxActor* Picking::letGo()
159{
160 // let go any picked actor
161 if(mMouseJoint)
162 {
163 mMouseJoint->release();
164 mMouseJoint = NULL;
165
166 // SAFE_RELEASE(mMouseActor); // PT: releasing immediately crashes
167 PX_ASSERT(!mMouseActorToDelete);
168 mMouseActorToDelete = mMouseActor; // PT: instead, we mark for deletion next frame
169 }
170
171 PxActor* returnedActor = mSelectedActor;
172
173 mSelectedActor = NULL;
174
175 return returnedActor;
176}
177
178//----------------------------------------------------------------------------//
179

Callers 2

onPointerInputEventMethod · 0.80
onDigitalInputEventMethod · 0.80

Calls 1

releaseMethod · 0.45

Tested by

no test coverage detected