Jump to content
Wandering Soulstar

Phantom vs PRIM_PHYS_SHAPE_NONE

Recommended Posts

Posted (edited)

Hi All,

Have a question that I cannot get in-world to check for sometime, and was hoping someone knew the answer to ... or could test 😄

When we turn any prim in a linkset to Phantom .. the whole linkset goes Phantom. Reading the definition of PRIM_PHYSICS_SHAPE_TYPE - PRIM_PHYS_SHAPE_NONE it seems that with this we can get around that limitation ... i.e. have a particular prim in a linkset go 'phantom' without affecting the rest ... just wondering if that is true as it would simplify some code I'm on at the moment.

Edited by Wandering Soulstar
spelling

Share this post


Link to post
Share on other sites

The major difference between "object is phantom" and "child in linkset has no physics" is that a phantom object still exists in the physics engine even though you and physical objects will pass through it. Collisions and volume interpenetration detection still happen. Setting a child in a linkset to physics type "none" removes if from consideration by the physics engine entirely and these detections don't happen at all. The other difference is that entire objects can be phantom, physics:none can only be applied to children in a linkset. The physics engine must always "know about" the root prim.

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...