CreateStaticGeometry()

Syntax

Result = CreateStaticGeometry(#StaticGeometry, Width, Height, Length, EnableShadows)
Description
Create an empty static geometry.

Parameters

#StaticGeometry A number to identify the new static geometry will be identified. #PB_Any can be used to auto-generate this number.
Width Width (in world unit) of the static geometry.
Height Height (in world unit) of the static geometry.
Length Length (in world unit) of the static geometry.
EnableShadows Enables or disables dynamic shadows casting on the static geometry. Set to #True to enable it, #False otherwise.

Return value

Returns nonzero if the static geometry has been successfully created and zero if not. If #PB_Any was used for the #StaticGeometry parameter then the generated number is returned on success.

Remarks

If previously another static geometry was loaded with the same #StaticGeometry number, then this older static geometry will be automatically freed when creating the new one.

See Also

FreeStaticGeometry()

Supported OS

All

<- BuildStaticGeometry() - StaticGeometry Index - FreeStaticGeometry() ->