Simple Collider Displayer Mod [0.42+]

ITR

l̺̤͈̘̰̺͉̳͉̖̝̱̻̠̦͈ͅ֍̫̜̥̭͖̱̟̟͉͙̜̰ͅl̺̤͈̘̰̺͉̳͉̖̝̱̻̠̦͈ͅ
Staff member
#1
Update: Made it display colliders longer + you can now press ctrl+C on some specific gameobject to show it's collider

Update: Made sure it didn't leave stuff for long after deleting blocks. Fixed not applying options to new blocks placed.

Update: Fixed colliders sometimes not displaying when loading new machines.

Update: More bug-fixes, removed the cube that appears, and fixed sphere colliders being half the size of what they should be

Update: Fixed some issues that caused lag when using building tools. Should be quicker in general, and have fewer errors. Disabling and enabling the mod should fix any remaining errors. Thanks to @Redstoneman (was that the right one?) for helping with testing.


Shows the colliders of blocks, where the green colliders are the solid collider of the object, the red colliders are the triggers, and the orange are fire colliders.

Red spheres are usually the triggers that connect blocks to each other at game-start, while red squares are used to allow you to place blocks on that side. If there are no red squares, it usually uses the main green collider for that instead.

The fire colliders are where the solid part of a block on fire has to be within to light the block the fire collider belongs to on fire.

Note: The GUI and colliders don't show up before you place a block, and the visuals for the starting block collider is the wrong place.
upload_2017-1-31_0-50-31.png
 

Attachments

Last edited:

ITR

l̺̤͈̘̰̺͉̳͉̖̝̱̻̠̦͈ͅ֍̫̜̥̭͖̱̟̟͉͙̜̰ͅl̺̤͈̘̰̺͉̳͉̖̝̱̻̠̦͈ͅ
Staff member
#5
That's strange, it shouldn't be that intensive graphics wise, but I guess the calculations to make sure it's the correct size/rotation/position are a little intensive.

If you have a weak computer, it's probably better to use it with only the affected parts of the machine, if you need to see what breaks in your machine, remove all the parts that can't affect it.
And disable the mod in ctrl+m when not using it
 
#7
Hi,
could you explain a bit more in detail what the difference is between the red spheres and red boxes?
Do the fire colliders show where a flame has to intersect to ignite the block?

Thanks :)
 

ITR

l̺̤͈̘̰̺͉̳͉̖̝̱̻̠̦͈ͅ֍̫̜̥̭͖̱̟̟͉͙̜̰ͅl̺̤͈̘̰̺͉̳͉̖̝̱̻̠̦͈ͅ
Staff member
#8
Hi,
could you explain a bit more in detail what the difference is between the red spheres and red boxes?
Do the fire colliders show where a flame has to intersect to ignite the block?

Thanks :)
If a block A is within the sphere of a block on fire, then block A will be affected by the fire if it can be

Noticed that all the sphere-colliders were half of the size they should have been, so that might have caused some confusion. I've updated it now so you should download the new version and use that instead
 

ITR

l̺̤͈̘̰̺͉̳͉̖̝̱̻̠̦͈ͅ֍̫̜̥̭͖̱̟̟͉͙̜̰ͅl̺̤͈̘̰̺͉̳͉̖̝̱̻̠̦͈ͅ
Staff member
#9
Another quick bugfix to fix colliders sometimes not displaying when loading new machines.
 
#10
Nice to know.
Red spheres are usually the triggers that connect blocks to each other at game-start, while red squares are used to allow you to place blocks on that side. If there are no red squares, it usually uses the main green collider for that instead.
This confuses me a bit. Does it mean, that when I build sth "vanilla", then the game uses the red spheres to place a block, but if I then start to move a block, it will still connect if it is inside the red box?
If this is the case, I don't understand why the wing on the right side in the pictures below does connect on the first, but not in the second. There actually is no difference in the intersections between red spheres and boxes and green boxes.

The difference between the pictures is, that I moved the wing 0.05 units more to the right.
connects.jpg no_connection.jpg
connects______no connection

Regards.
 
#11
Edit: I realised, that you also increased the size of the red spheres that connect blocks, and now I saw, that in the above pictures there was a very small intersection between the green block of the swivel and the red sphere of the wing. Moving 0.05 to the right was enouth to not have this intersection anymore. So it seems to work fine now.
My understanding now is that there has to be an intersection between a red sphere and a red box if two blocks should stick together. If there is no red box on a block, it is identical with the green box. Is this correct>
 

ITR

l̺̤͈̘̰̺͉̳͉̖̝̱̻̠̦͈ͅ֍̫̜̥̭͖̱̟̟͉͙̜̰ͅl̺̤͈̘̰̺͉̳͉̖̝̱̻̠̦͈ͅ
Staff member
#12
[BOLD}Edit:[/BOLD] I realised, that you also increased the size of the red spheres that connect blocks, and now I saw, that in the above pictures there was a very small intersection between the green block of the swivel and the red sphere of the wing. Moving 0.05 to the right was enouth to not have this intersection anymore. So it seems to work fine now.
My understanding now is that there has to be an intersection between a red sphere and a red box if two blocks should stick together. If there is no red box on a block, it is identical with the green box. Is this correct>
Yeah, though not all red boxes are that type of box (E.G. the ones on the propellers), and some blocks don't let you connect to them at all.

Also, stuff I was writing but you figured it out before I could finish writing: :(
Nice to know.

This confuses me a bit. Does it mean, that when I build sth "vanilla", then the game uses the red spheres to place a block, but if I then start to move a block, it will still connect if it is inside the red box?
If this is the case, I don't understand why the wing on the right side in the pictures below does connect on the first, but not in the second. There actually is no difference in the intersections between red spheres and boxes and green boxes.

The difference between the pictures is, that I moved the wing 0.05 units more to the right.
View attachment 1038 View attachment 1039
connects______no connection

Regards.
You seems to have the version from before I fixed the sphere sizes, so in the first picture, the sphere probably intersects with the green box (Maybe there was something weird going on with the download).

I explained the red boxes a bit poorly, basically, some blocks (E.G. the wing panel), have really thin red squares you can place on, while others, (E.G. 1x1,2x1 and 3x1 wooden blocks) let you place directly onto the green collider of the block itself. Then, when the game starts, if the red circle of another block is intersecting with such a collider (If it uses the red squares, it usually won't let you connect to the green boxes, so it you will have to have them intersect with the red squares ).

That said, there are red boxes that aren't used for being connected to
 
#14
Sorry to annoy you again.
When you deactivate any type of collider, a newly placed block will still view all of the colliders.
Is this supposed to be the case? It is actually a bit irritating if you just want to build and don't really need for example the fire colliders.
 

ITR

l̺̤͈̘̰̺͉̳͉̖̝̱̻̠̦͈ͅ֍̫̜̥̭͖̱̟̟͉͙̜̰ͅl̺̤͈̘̰̺͉̳͉̖̝̱̻̠̦͈ͅ
Staff member
#15
Sorry to annoy you again.
When you deactivate any type of collider, a newly placed block will still view all of the colliders.
Is this supposed to be the case? It is actually a bit irritating if you just want to build and don't really need for example the fire colliders.
Should be fixed now
 
#19
when i start then stop the simulation with the mod disabled, it reactivates itself so i have to go into the ctrl+m menu and deactivate it again.
its pretty annoying, especially when i dont need the mod active
it also stays active during simulation if i dont deactivate it
 

ITR

l̺̤͈̘̰̺͉̳͉̖̝̱̻̠̦͈ͅ֍̫̜̥̭͖̱̟̟͉͙̜̰ͅl̺̤͈̘̰̺͉̳͉̖̝̱̻̠̦͈ͅ
Staff member
#20
when i start then stop the simulation with the mod disabled, it reactivates itself so i have to go into the ctrl+m menu and deactivate it again.
its pretty annoying, especially when i dont need the mod active
it also stays active during simulation if i dont deactivate it
Does it reactivate itself in the menu too, or do you have to toggle it twice to deactivate it?
 
Top