Jump to content

Kubric Flux

Resident
  • Posts

    2
  • Joined

  • Last visited

Reputation

0 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi Everyone, The code I posted before works perfectly for me when used to replace the phantom code already used on my skyboxes but I have tried it on 4 linked cubes and it didn't work for some reason, they all turned solid. So I rezzed 4 new cubes and linked them and placed the following code in one of the cubes and it worked default { state_entry() { llSetLinkPrimitiveParamsFast(LINK_THIS,[ PRIM_PHYSICS_SHAPE_TYPE,PRIM_PHYSICS_SHAPE_NONE]); } } None of the cubes are phantom..the script makes 3 cubes without the script have the prim physics type and the one with the script none so you can walk through it. After a few tests with the script here are my findings that you should be aware of when using it. Regular prims means no twists, hollowing, slice, taper etc.. this can make the land impact total very high when using the script. 1. A build made entirely from regular prims will have a land impact of half the amount of prims used for the build. 2. A build with equal amount of regular prims and sculpted prims will have a land impact equal to the total amount of prims used for the build. 3. A build with more regular prims than sculpted prims will have a slightly lower land impact total. 4. A build with more sculpted prims than regular prims will have a slightly higher land impact total. 5. A build made with just sculpted prims will have a land impact equal to almost double the amount of prims used. I haven't tried this with mesh yet as I'm not using mesh at the moment. When you link your build make sure the prim you add the script to isn't set as the root prim, the root prim physics shape can't be set to NONE. Btw, I'm not a scripter, I just get lucky sometimes, so I hope this one helps.
  2. Hi Everyone, I had the same problem with a basic skybox I made, which started out at 15 prims then went up to 28 prims after the changes. Here is a bit of code I am using that makes it 15 prims again without needing to unlink it, I just swapped the old code for this: default { state_entry() { llSetLinkPrimitiveParamsFast(LINK_THIS,[ PRIM_PHYSICS_SHAPE_TYPE,PRIM_PHYSICS_SHAPE_PRIM]); } } Hope it helps. NOTE - Check my other post further along to see some new code thats works, the above might not work.
×
×
  • Create New...