centroid

centroid

Details

Kode wheel segment Positioning
Style Vector variable
Modifiers None
Primarily WHEN/DO DO
Pre-made brains that use it Unknown

Positioning > centroid

Description

This tile is used to calculate the central vector within a group of objects in an object set. The centroid variable is a 3D vector x,y,z co ordinates.

Example Code

WHEN  DO [objset: towers}[equals][IWP: tower] [+][IWP: tower][+][IWP: tower]
WHEN [objset:towers] DO [vectorvar: middle of towers][equals][objset:towers][centroid]
WHEN DO [display][vectorvar:middle of towers][x]

Modifiers

 

 

Other Uses

See Tutorial Centroid tile by Mescad

 

Comments are closed.

Website Powered by WordPress.com.

Up ↑

%d bloggers like this: