====== GAME_OBJECT ====== //Abstract class//\\ **Category**: Data ===== Properties ===== ---- ==== Position ==== //[[:annotations#serialized|Serialized]]// * **Type**: ''[[:api:vec3f|vec3f]]'' * **Expected**: ''vec3f value'' ---- ==== Scale ==== //[[:annotations#serialized|Serialized]]// * **Type**: ''[[:api:vec3f|vec3f]]'' * **Expected**: ''vec3f value'' * **Default value**: ''{ 1, 1, 1 }'' ---- ==== Orientation ==== //[[:annotations#serialized|Serialized]]// * **Type**: ''[[:api:quaternion|quaternion]]'' * **Expected**: ''quaternion value'' ---- ==== Name ==== //[[:annotations#serialized|Serialized]]// * **Type**: ''[[:data-types#string|string]]'' * **Expected**: ''string value'' ---- ==== Active ==== //[[:annotations#serialized|Serialized]]// * **Type**: ''[[:data-types#boolean|boolean]]'' * **Expected**: ''boolean value'' ===== Functions ===== ---- ==== translate ==== ''void **translate**(//translation//)'' ^ Name ^ Type ^ Description ^ | //''translation''// | ''[[:api:vec3f|vec3f]]'' | | ---- ==== move ==== ''void **move**(//direction//)'' ^ Name ^ Type ^ Description ^ | //''direction''// | ''[[:api:vec3f|vec3f]]'' | | ---- ==== resetOrientation ==== ''void **resetOrientation**()'' ---- ==== lookAt ==== ''void **lookAt**(//target// [, //up// [, //lockOnUpAxis//]])'' ^ Name ^ Type ^ Description ^ | //''target''// | ''[[:api:vec3f|vec3f]]'' | | | //''up''// | ''[[:api:vec3f|vec3f]]'' | | | //''lockOnUpAxis''// | ''[[:data-types#boolean|boolean]]'' | | ''void **lookAt**(//target//, //lockOnUpAxis//)'' ^ Name ^ Type ^ Description ^ | //''target''// | ''[[:api:vec3f|vec3f]]'' | | | //''lockOnUpAxis''// | ''[[:data-types#boolean|boolean]]'' | | ---- ==== rotateAround ==== ''void **rotateAround**(//pivot//, //rotation//)'' ^ Name ^ Type ^ Description ^ | //''pivot''// | ''[[:api:vec3f|vec3f]]'' | | | //''rotation''// | ''[[:api:quaternion|quaternion]]'' | | ''void **rotateAround**(//pivot//, //vector//, //angle//)'' ^ Name ^ Type ^ Description ^ | //''pivot''// | ''[[:api:vec3f|vec3f]]'' | | | //''vector''// | ''[[:api:vec3f|vec3f]]'' | | | //''angle''// | ''[[:data-types#float|float]]'' | | ---- ==== rotate ==== ''void **rotate**(//quaternion//)'' ^ Name ^ Type ^ Description ^ | //''quaternion''// | ''[[:api:quaternion|quaternion]]'' | | ---- ==== rotateX ==== ''void **rotateX**(//ax//)'' ^ Name ^ Type ^ Description ^ | //''ax''// | ''[[:data-types#float|float]]'' | | ---- ==== rotateY ==== ''void **rotateY**(//ay//)'' ^ Name ^ Type ^ Description ^ | //''ay''// | ''[[:data-types#float|float]]'' | | ---- ==== rotateZ ==== ''void **rotateZ**(//az//)'' ^ Name ^ Type ^ Description ^ | //''az''// | ''[[:data-types#float|float]]'' | | ---- ==== setRotationX ==== ''void **setRotationX**(//ax//)'' ^ Name ^ Type ^ Description ^ | //''ax''// | ''[[:data-types#float|float]]'' | | ---- ==== setRotationY ==== ''void **setRotationY**(//ay//)'' ^ Name ^ Type ^ Description ^ | //''ay''// | ''[[:data-types#float|float]]'' | | ---- ==== setRotationZ ==== ''void **setRotationZ**(//az//)'' ^ Name ^ Type ^ Description ^ | //''az''// | ''[[:data-types#float|float]]'' | | ---- ==== rotateLocal ==== ''void **rotateLocal**(//quaternion//)'' ^ Name ^ Type ^ Description ^ | //''quaternion''// | ''[[:api:quaternion|quaternion]]'' | | ---- ==== rotateLocalX ==== ''void **rotateLocalX**(//ax//)'' ^ Name ^ Type ^ Description ^ | //''ax''// | ''[[:data-types#float|float]]'' | | ---- ==== rotateLocalY ==== ''void **rotateLocalY**(//ay//)'' ^ Name ^ Type ^ Description ^ | //''ay''// | ''[[:data-types#float|float]]'' | | ---- ==== rotateLocalZ ==== ''void **rotateLocalZ**(//az//)'' ^ Name ^ Type ^ Description ^ | //''az''// | ''[[:data-types#float|float]]'' | | ---- ==== setScale ==== ''void **setScale**(//scale//)'' ^ Name ^ Type ^ Description ^ | //''scale''// | ''[[:data-types#float|float]]'' | | ---- ==== scale ==== ''void **scale**(//scale//)'' ^ Name ^ Type ^ Description ^ | //''scale''// | ''[[:api:vec3f|vec3f]]'' | | ''void **scale**(//scale//)'' ^ Name ^ Type ^ Description ^ | //''scale''// | ''[[:data-types#float|float]]'' | | ---- ==== scaleAround ==== ''void **scaleAround**(//pivot//, //scale//)'' ^ Name ^ Type ^ Description ^ | //''pivot''// | ''[[:api:vec3f|vec3f]]'' | | | //''scale''// | ''[[:api:vec3f|vec3f]]'' | | ---- ==== generateGlobalMatrix ==== ''void **generateGlobalMatrix**(//outMatrix//)'' ^ Name ^ Type ^ Description ^ | //''outMatrix''// | ''[[:api:matrix|matrix]]'' | //[[:annotations#out_argument|Out argument]]// | ---- ==== setLocalMatrix ==== ''void **setLocalMatrix**(//matrix//)'' ^ Name ^ Type ^ Description ^ | //''matrix''// | ''[[:api:matrix|matrix]]'' | | ---- ==== setGlobalPosition ==== ''void **setGlobalPosition**(//position//)'' ^ Name ^ Type ^ Description ^ | //''position''// | ''[[:api:vec3f|vec3f]]'' | | ---- ==== setGlobalOrientation ==== ''void **setGlobalOrientation**(//orientation//)'' ^ Name ^ Type ^ Description ^ | //''orientation''// | ''[[:api:quaternion|quaternion]]'' | | ---- ==== setGlobalTransform ==== ''void **setGlobalTransform**(//position//, //orientation//)'' ^ Name ^ Type ^ Description ^ | //''position''// | ''[[:api:vec3f|vec3f]]'' | | | //''orientation''// | ''[[:api:quaternion|quaternion]]'' | | ''void **setGlobalTransform**(//position//, //orientation//, //scale//)'' ^ Name ^ Type ^ Description ^ | //''position''// | ''[[:api:vec3f|vec3f]]'' | | | //''orientation''// | ''[[:api:quaternion|quaternion]]'' | | | //''scale''// | ''[[:api:vec3f|vec3f]]'' | | ---- ==== setGlobalMatrix ==== ''void **setGlobalMatrix**(//matrix//)'' ^ Name ^ Type ^ Description ^ | //''matrix''// | ''[[:api:matrix|matrix]]'' | | ---- ==== setGlobalMatrixIgnoreScale ==== ''void **setGlobalMatrixIgnoreScale**(//matrix//)'' ^ Name ^ Type ^ Description ^ | //''matrix''// | ''[[:api:matrix|matrix]]'' | | ---- ==== getGlobalPosition ==== ''[[:api:vec3f|vec3f]] **getGlobalPosition**()'' ---- ==== getGlobalOrientation ==== ''[[:api:quaternion|quaternion]] **getGlobalOrientation**()'' ---- ==== globalLookAt ==== ''void **globalLookAt**(//target// [, //lockOnUpAxis//])'' ^ Name ^ Type ^ Description ^ | //''target''// | ''[[:api:vec3f|vec3f]]'' | | | //''lockOnUpAxis''// | ''[[:data-types#boolean|boolean]]'' | | ---- ==== getLevel ==== ''[[:api:level|LEVEL]] **getLevel**()'' ---- ==== destroy ==== ''void **destroy**()'' ---- ==== destroyAllChild ==== ''void **destroyAllChild**()'' ---- ==== getParent ==== ''[[:api:game_object|GAME_OBJECT]] **getParent**()'' ---- ==== setParent ==== ''void **setParent**(//parent// [, //keepWorldTransform//])'' ^ Name ^ Type ^ Description ^ | //''parent''// | ''[[:api:game_object|GAME_OBJECT]]'' | | | //''keepWorldTransform''// | ''[[:data-types#boolean|boolean]]'' | | ---- ==== isParentedTo ==== ''[[:data-types#boolean|boolean]] **isParentedTo**(//parent//)'' ^ Name ^ Type ^ Description ^ | //''parent''// | ''[[:api:game_object|GAME_OBJECT]]'' | | ---- ==== forEachChild ==== ''void **forEachChild**(//function//)'' ^ Name ^ Type ^ Description ^ | //''function''// | ''function'' | If ''false'' is returned, the iteration stops. Returns ''true'' by default. | ---- ==== forEachChildRecursive ==== ''void **forEachChildRecursive**(//function//)'' ^ Name ^ Type ^ Description ^ | //''function''// | ''function'' | If ''false'' is returned, the iteration stops. Returns ''true'' by default. | ---- ==== forEachComponent ==== ''void **forEachComponent**(//function//)'' ^ Name ^ Type ^ Description ^ | //''function''// | ''function'' | If ''false'' is returned, the iteration stops. Returns ''true'' by default. | ---- ==== forEachComponentReverse ==== ''void **forEachComponentReverse**(//function//)'' ^ Name ^ Type ^ Description ^ | //''function''// | ''function'' | If ''false'' is returned, the iteration stops. Returns ''true'' by default. | ---- ==== buildMinMaxBounding ==== ''[[:data-types#boolean|boolean]] **buildMinMaxBounding**(//outMin//, //outMax//)'' ^ Name ^ Type ^ Description ^ | //''outMin''// | ''[[:api:vec3f|vec3f]]'' | //[[:annotations#out_argument|Out argument]]// | | //''outMax''// | ''[[:api:vec3f|vec3f]]'' | //[[:annotations#out_argument|Out argument]]// | ---- ==== getId ==== ''[[:data-types#guid|guid]] **getId**()'' ---- ==== addComponent ==== ''[[:api:component|COMPONENT]] **addComponent**(//componentType// [, //enabled//])'' ^ Name ^ Type ^ Description ^ | //''componentType''// | ''[[:data-types#component_type|component_type]]'' | | | //''enabled''// | ''[[:data-types#boolean|boolean]]'' | | ---- ==== getOrCreateComponent ==== ''[[:api:component|COMPONENT]] **getOrCreateComponent**(//componentType// [, //replaceExistingVariant//])'' ^ Name ^ Type ^ Description ^ | //''componentType''// | ''[[:data-types#component_type|component_type]]'' | | | //''replaceExistingVariant''// | ''[[:data-types#boolean|boolean]]'' | | ---- ==== getComponent ==== ''[[:api:component|COMPONENT]] **getComponent**(//type//)'' ^ Name ^ Type ^ Description ^ | //''type''// | ''[[:data-types#component_type|component_type]]'' | | ---- ==== getEnabledComponent ==== ''[[:api:component|COMPONENT]] **getEnabledComponent**(//type//)'' ^ Name ^ Type ^ Description ^ | //''type''// | ''[[:data-types#component_type|component_type]]'' | | ---- ==== removeComponent ==== ''[[:data-types#boolean|boolean]] **removeComponent**(//component//)'' ^ Name ^ Type ^ Description ^ | //''component''// | ''[[:api:component|COMPONENT]]'' | | ---- ==== findFirstParentWithComponent ==== ''[[:api:component|COMPONENT]] **findFirstParentWithComponent**(//type//)'' ^ Name ^ Type ^ Description ^ | //''type''// | ''[[:data-types#component_type|component_type]]'' | | ---- ==== findFirstObjectWithComponentUp ==== ''[[:api:component|COMPONENT]] **findFirstObjectWithComponentUp**(//type//)'' ^ Name ^ Type ^ Description ^ | //''type''// | ''[[:data-types#component_type|component_type]]'' | | ---- ==== findFirstObjectWithComponentDown ==== ''[[:api:component|COMPONENT]] **findFirstObjectWithComponentDown**(//type// [, //ignoreDestroyingObject//])'' ^ Name ^ Type ^ Description ^ | //''type''// | ''[[:data-types#component_type|component_type]]'' | | | //''ignoreDestroyingObject''// | ''[[:data-types#boolean|boolean]]'' | |