sm.visualization.setBlockVisualization

Visualizes a block on a shape

Kind: Function

Environments: Game

Game

Overload 1

sm.visualization.setBlockVisualization( position, illegal, shape )

Open the full Game reference

Availability: Client only

Parameters:

Name Type Description
position Vec3 The local space position
illegal (optional) boolean Whether the visualization should render as illegal (Defaults to false)
shape Shape Shape to visualize on

Overload 2

sm.visualization.setBlockVisualization( position, illegal, joint )

Open the full Game reference

Availability: Client only

Visualizes a block on a joint

Parameters:

Name Type Description
position Vec3 The local space position
illegal (optional) boolean Whether the visualization should render as illegal (Defaults to false)
joint Joint joint to visualize on

Overload 3

sm.visualization.setBlockVisualization( position, illegal )

Open the full Game reference

Availability: Client only

Visualizes a block in world space

Parameters:

Name Type Description
position Vec3 The world space position
illegal (optional) boolean Whether the visualization should render as illegal (Defaults to false)