Surface (Property): Difference between revisions

From Goodblox Wiki
Jump to navigationJump to search
(Created page with "{{CatUp|Properties}} '''This property is a summery of 6 different properties that perform the same action. They are ''BackSurface'', ''BottomSurface'', ''FrontSurface'', ''Le...")
 
No edit summary
 
Line 1: Line 1:
{{CatUp|Properties}}
{{CatUp|Properties}}


'''This property is a summery of 6 different properties that perform the same action. They are ''BackSurface'', ''BottomSurface'', ''FrontSurface'', ''LeftSurface'', ''RightSurface'', and ''TopSurface''.'''
'''This property is a summary of 6 different properties that perform the same action. They are ''BackSurface'', ''BottomSurface'', ''FrontSurface'', ''LeftSurface'', ''RightSurface'', and ''TopSurface''.'''




{{Property|
{{Property|
name = Surface
name = (side)Surface
|property = [[Enum]] ''SurfaceType''
|property = [[SurfaceType (Enum)|SurfaceType]] ''(side)Surface''
|description = Sets what type of surface the side is.
|description = Sets what type of surface the side is.
|object = [[GBX.lua.FlagStand (Object)|Flagstand]], [[GBX.lua.Part (Object)|Part]], [[GBX.lua.Seat (Object)|Seat]], [[GBX.lua.SpawnLocation (Object)|SpawnLocation]]
|object     = [[GBX.lua.BasePart (Object)|BasePart]]
|}}
}}</onlyinclude>





Latest revision as of 13:48, 20 September 2021


This property is a summary of 6 different properties that perform the same action. They are BackSurface, BottomSurface, FrontSurface, LeftSurface, RightSurface, and TopSurface.


Property
Name (side)Surface
Property SurfaceType (side)Surface
Description: Sets what type of surface the side is.
In Object: BasePart



The SurfaceType Enum holds 8 numbers.
Enum Name Description
0 Smooth Does not form a bond with any other surface.
1 Glue Forms a loose bond with other surfaces.
2 Weld Forms a strong bond with other surfaces.
3 Studs Only forms a weld-like bond with inlet surfaces.
4 Inlet Only forms a weld-like bond with studded surfaces.
5 Unused enum.
6 Hinge Forms a hinge-like bond with other surfaces, with free movement.
7 Motor Forms a hinge-like bond with other surfaces, without free movement. A motors behavior depends on the surface input.
8 SteppingMotor Same as Motor.