-
Notifications
You must be signed in to change notification settings - Fork 22
Bodies
sets the shadow body center at x, y
adds x and y to the current position of the shadow body
returns: x, y
returns the position of the shadow body
returns: width number
returns the bodies width
returns: height number
returns the bodies height
returns: width number
returns the width of the image if this is for an image shadow body
returns: height number
returns the height of the image if this is for an image shadow body
sets the width and height of the shadow body if rectangle
sets the offset of the under shadow
sets the offset of the image being drawn as a material
sets the offset of the normal map
set the glow color
sets the glow strength 0 -> 1
returns: radius number
gets the radius if a circle body
sets the radius if a circle body
sets polygon points if a poly shadow body. accepted in the form of x1,y1,x2,y2...,xn,yn
returns the data points if the body is a polygon body
sets if the body casts a shadow or not
sets if the body reflects the light
sets the color of the shadow
set the alpha of the shadow
set if the body has reflection
set if the body has refraction
set if the body has reflection
set if the body has refraction
set the image on the body
set the normal map on the body with offset nx, ny
set the normal map offset
sets a normal map from a height map strength 0 -> 1
generate flat normal map from image mode = {'top', 'front', 'back', 'left', 'right'}
defaults: horizontalGradient = "gradient", verticalGradient = horizontalGradient gradients = {"gradient", "inverse"} generate normal map gradient from the img
generates a normalmap from the bodies image strength 0 -> 1
set the material to be drawn
get body type
set shadow type circle: args = radius, offsetx, offsety rectangle: args = width, height, offsetX, offsetY, polygon: no args image: args = shadowX, shadowY, fadeStrength