Class tQuery.MD2Character

Class Summary
Constructor Attributes Constructor Name and Description
 
widely inspired from MD2Character.js from alteredq / http://alteredqualia.com/

Method Summary

Class Detail

tQuery.MD2Character()
widely inspired from MD2Character.js from alteredq / http://alteredqualia.com/

Method Detail

  • animation(animationName)
    set the animation. TODO a setter/getter
    Parameters:
    {string} animationName
    the animation name to set
  • {THREE.Object3D} container()
    Returns:
    {THREE.Object3D} the object3D containing the object
  • destroy()
    Destructor
  • {Boolean} isLoaded()
    Returns:
    {Boolean} true if the character is loaded, false otherwise
  • load(config)
    Load the part of your characters
    Parameters:
    config
  • scale(value)
    Getter/setter for the scale of the object
    Parameters:
    value
  • setPlaybackRate(rate)
    Parameters:
    {number} rate
    the rate to play the object
  • setSkin(index)
    Parameters:
    {Number} index
    set the index of the skin
  • setWeapon(index)
    Set the weapons
    Parameters:
    {Number} index
    the index of the animations
  • setWireframe(enable)
    Parameters:
    {Boolean} enable
    true to enable wireframe, false otherwise
  • update(deltaSeconds)
    Update the animation
    Parameters:
    {Number} deltaSeconds
    nb seconds since the last update