# How to access a specific object in a PxScene?

**URL:** <https://forums.unrealengine.com/t/how-to-access-a-specific-object-in-a-pxscene/321156>\
**Category:** World Creation\
**Tags:** physx, unreal-engine, nvidia, Physics, question\
**Created:** [June 9, 2015, 12:39pm UTC](https://forums.unrealengine.com/t/how-to-access-a-specific-object-in-a-pxscene/321156 "2015-06-09T12:39:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thumper](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Thumper](https://forums.unrealengine.com/u/Thumper)\
**Post date:** [June 9, 2015, 12:39pm UTC](https://forums.unrealengine.com/t/how-to-access-a-specific-object-in-a-pxscene/321156/1 "2015-06-09T12:39:08Z")

</div>

I’m going through and changing the gravity direction for the physics simulation. I want each object to have it’s own gravity direction. I’ve found that in PhysLevel there is a gravity direction that gets set. How can I access the individual objects within a PxScene? For my purposes I only need to access their location. Also it appears that gravity is set globally to each PxScene.

```
PScene->setGravity(U2PVector(*NewGrav));

```

This makes me believe I would need to create a new physics scene for each object. Do objects from PxScene interact with objects from another (I’m guessing no)?

And last, is the code within PxScene allowed to be modified? I see that it’s covered under NVIDIA software license agreement - but if anyone knows off hand it would save me time 🙂

Thanks
