TransformAttachment
TransformAttachment
Controls Transform the entity it is attached to, enables transformation hierarchy.
Kind: global class
- TransformAttachment
- instance
- .transform :
Transform - .parent :
number - .flags :
number - .immediate
- .isTransformAttachment :
boolean - .setFlag(flag) ⇒
void - .clearFlag(flag) ⇒
void - .writeFlag(flag, value)
- .getFlag(flag) ⇒
boolean
- .transform :
- static
- .typeName :
string
- .typeName :
- instance
transformAttachment.transform : Transform
Transform relative to the attachment target. Think of this as "local transform".
Kind: instance property of TransformAttachment
transformAttachment.parent : number
Which entity to attach to, this is what our transform is relative to.
Kind: instance property of TransformAttachment
transformAttachment.flags : number
Do not modify directly, see TransformAttachmentFlags.
Kind: instance property of TransformAttachment
transformAttachment.immediate
Kind: instance property of TransformAttachment
| Param | Type |
|---|---|
| v | boolean |
transformAttachment.isTransformAttachment : boolean
Kind: instance property of TransformAttachment
Read only: true
transformAttachment.setFlag(flag) ⇒ void
Kind: instance method of TransformAttachment
| Param | Type |
|---|---|
| flag | number | TransformAttachmentFlags |
transformAttachment.clearFlag(flag) ⇒ void
Kind: instance method of TransformAttachment
| Param | Type |
|---|---|
| flag | number | TransformAttachmentFlags |
transformAttachment.writeFlag(flag, value)
Kind: instance method of TransformAttachment
| Param | Type |
|---|---|
| flag | number | TransformAttachmentFlags |
| value | boolean |
transformAttachment.getFlag(flag) ⇒ boolean
Kind: instance method of TransformAttachment
| Param | Type |
|---|---|
| flag | number | TransformAttachmentFlags |
TransformAttachment.typeName : string
Kind: static property of TransformAttachment
Read only: true