iterami/Docs.htm/common HTM Repos/webgl.js Prefabs/prefabs_webgl_football_pitch(args)
- Creates a football pitch prefab with the specified properties.
- Position is the center of the field on the grass.
- The "line_height" arg is the height at which lines are drawn above the grass. It is not scaled and helps reduce z-fighting when viewed from far away.
- Args will be used in entity creation after being cleaned up by webgl_prefab_args(args).
| character
| webgl_character_base
| string ID
|
| circle_radius
| 9.15
| number
|
| goal_color
| [1, 1, 1, 1]
| array of numbers
|
| goal_height
| 2.44
| number
|
| goal_width
| 7.32
| number
|
| goalbox_length
| 5.5
| number
|
| goalbox_width
| 18.32
| number
|
| grass_color
| [0, .3, 0, 1]
| array of numbers
|
| groups
| []
| array of strings
|
| line_color
| [1, 1, 1, 1]
| number
|
| line_height
| .03
| number
|
| line_width
| .12
| number
|
| penalty_distance
| 11
| number
|
| penaltybox_length
| 16.5
| number
|
| penaltybox_width
| 40.32
| number
|
| pitch_length
| 105
| number
|
| pitch_width
| 64
| number
|
| prefix
| entity_id_count
| string ID
|
| scaling
| 1
| number
|
| spot_radius
| .3
| number
|