Scrap Mechanic Wiki
Explore
Main Page
All Pages
Interactive Maps
navigation
Main page
Community portal
Recent changes
Random page
Admin noticeboard
Portals
Official Website
Steam Store
Gamepedia
Gamepedia support
Report a bad ad
Help Wiki
Contact us
FANDOM
Fan Central
BETA
Games
Anime
Movies
TV
Video
Wikis
Explore Wikis
Community Central
Start a Wiki
Don't have an account?
Register
Sign In
Sign In
Register
Scrap Mechanic Wiki
519
pages
Explore
Main Page
All Pages
Interactive Maps
navigation
Main page
Community portal
Recent changes
Random page
Admin noticeboard
Portals
Official Website
Steam Store
Gamepedia
Gamepedia support
Report a bad ad
Help Wiki
Contact us
Editing
Modding
(section)
Back to page
Edit
VisualEditor
History
Talk (10)
Edit Page
Modding
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Collision=== There are 3 different colliders: box, cylinder and hull. ====Box==== The box collision will create a box surrounding your mesh. {| class="wikitable" |Example box values |Result |- |"box": { "x": 1, "y": 2, "z": 3 } |Creates a box collision with the dimensions corresponding to the values of x, y, z. |} ====Cylinder==== A cylinder collision is good to use for wheels or round objects. {| class="wikitable" |Example cylinder values |Result |- |"cylinder": { "diameter": 7, "depth": 1, "margin": 0.5, "axis": "Z" } |Diameter is the size of the cylinder. Depth sets the thickness. Margin sets the bevel amount, pretty much rounds the edges. Axis determines in which direction the cylinder is facing. |} ====Hull==== [[File:Hull Collision.png|left|thumb|387x387px]] A hull collision is a collision mesh in which you can apply to your part by adding it to the part in the parts list by right clicking on it, once you have the hull added you can add a "col" which defines it's collision mesh, it must use the format ".obj" in order for it to work correctly, once you have assigned the mesh, the 3 coordinates which are in the base hull represent the size of the box in which you can weld, or use to place the part down/placing on it. The hull collision also supports the sticky, and rotation set modifiers. ==== Hull [Old/Pre-Survival] ==== A hull collision is created using a pointlist. It draws lines between vertex coordinates. These vertex coordinates can be found, if for example you open a .obj file with a text editor. However it's good to make a simplified mesh to not get too many coordinates in the list. {| class="wikitable" |Example hull values |Result |- |"hull": { "x": 1, "y": 1, "z": 1, "pointList": [ { "x": 1.0, "y": -1.0, "z": -1.0 }, { "x": -1.0, "y": -1.0, "z": -1.0 }, { "x": -1.0, "y": -1.0, "z": 1.0 }, { "x": 1.0, "y": -1.0, "z": 1.0 } ] } |x, y, and z defines the size of a space/cube which the pointlist will fit itself in Each row in the pointList of x, y, z refers to the location of a single vertex point. Together the rows create the hitbox. |} [[File:Hull shape.jpg|460px]]
Summary:
Please note that all contributions to the Scrap Mechanic Wiki are considered to be released under the CC BY-NC-SA
Cancel
Editing help
(opens in new window)
Follow on IG
TikTok
Join Fan Lab