PDA

View Full Version : None Rendered Barrier?


TopazFrost
05-23-2014, 09:46 AM
I've noticed a weird problem in some of my worlds. Collision detection just doesn't work quite as well when moving backward.

For example, I have a open window. If I try to go through it forwards or even at an angle, I'm stopped every time. If I go backwards, I go past 50% of the time. It is also a problem with more complicated meshes.

My solution was to add a simple polygon planes or boxes around problem objects with a transparency of 100%. It works, but now it is rendering slower due to the transparency. Is there anyway to mark a node as "use for collision" AND "don't render"?

Jeff
05-27-2014, 04:31 AM
You can disable viz.RENDERING on the node. It will be used for collisions but not displayed:
object.disable(viz.RENDERING)

Jeff
05-27-2014, 04:46 AM
You could also create a low poly alternative of the main model just for collision detection. On that you disable rendering and on the visible mesh you disable intersection. That would help if you're still having issues with framerate drops.

TopazFrost
05-27-2014, 07:10 PM
Thank you!