LHBone Reference

LHBone.lua

Overview

LHBone class is used to load a skeletal structure.

Conforms to:

LHNodeProtocol

LHAnimationsProtocol

Instance Methods

getConnections

local  getConnections()
Discussion

Get the bone connections.

Declared In
LHBone.lua

getMaxAngle

local  getMaxAngle()
Discussion

Get the bone max angle.

Declared In
LHBone.lua

getMinAngle

local  getMinAngle()
Discussion

Get the bone min angle.

Declared In
LHBone.lua

getRigid

local  getRigid()
Discussion

Get the bone rigid state.

Declared In
LHBone.lua

getRootBone

local  getRootBone()
Discussion

Get the root bone. Will return self if bone is already the root or the root bone if bone is in hierarchy.

Declared In
LHBone.lua

getRootBoneNodes

local  getRootBoneNodes()
Discussion

Get the root bone "Nodes" object. This is where sprites are kept. Search this node for sprites of certain name or type. Sprites inside root bone "Nodes" do not have unique names inside scene hierarchy. They have unique names only inside "Nodes". So if two skeletal structures are inside the scene. You must first find the root bone you deside. Then use this method to get the "Nodes" and search for the child sprite you need.

Declared In
LHBone.lua

isRoot

local  isRoot()
Discussion

Find if bone is the root bone or not.

Declared In
LHBone.lua

setPosition

local  setPosition(value)
Parameters
value

The new position value. A table like {x =100, y = 200}

Discussion

Set the node position

Declared In
LHBone.lua

setRotation

local  setRotation(angle)
Parameters
angle

The new rotation value

Discussion

Set the node rotation

Declared In
LHBone.lua
Last updated: 2015-3-15

Back to top

Copyright © VLADU BOGDAN DANIEL PFA.