-
Notifications
You must be signed in to change notification settings - Fork 1
Components
Maks edited this page Feb 5, 2019
·
6 revisions
Nothing more than a string
Properties | Type | Notes |
---|---|---|
position | vector3 table | local position |
rotation | vector3 table | local rotation in euler angles in degrees |
scale | vector3 table | local scale |
Rotates angle
degrees around axis (x,y,z). Normalizes the axis internally.
Multiplies the current scale by the given values.
Properties | Type | Notes |
---|---|---|
mesh | string | path to the mesh, relative to the assets folder. Write-only. |
A second property, RenderInfo.material
, is currently only settable when creating the component out of a component definition. See Game.makeActor
. Supported properties of material
:
Properties | Type | Notes |
---|---|---|
diffuseColor | vector3 table | |
diffuseMap | string | path to the diffuse map |
specularColor | vector3 table | |
specularMap | string | path to the specular map |
shininess | number | shininess in ADS shading |
No properties or functions at the moment.
Properties | Type | Notes |
---|---|---|
color | vector3 table | |
intensity | number | |
colorAmbient | string | ignores intensity
|
kind | string | "Point", "Directional" or "Spot". Currently only settable through a component definition (see Game.makeActor ). |
Properties | Type | Notes |
---|---|---|
isKinematic | bool | |
useGravity | bool | |
bounciness | number | should be between 0 and 1 |
radius | number | As collision detection is currently only supported between spheres |
velocity | vector3 table |