* @param position
* The position vector for the character
*/
SpriteGameCharacter(final String texture, final Animator animator,
final Vector3f position) {
super(TEXCOORDS, texture, new BoundingBox(new Vector3f(-1.0f, -1.0f,
0.0f), new Vector3f(1.0f, 1.0f, 0.0f)), position);
_transform.setScale(new Vector3f(DEFAULT_SCALE, DEFAULT_SCALE,
DEFAULT_SCALE));
_prevTransform = new Transform3D(_transform);
_prevBounds = new BoundingBox();
// Create the character's jump animation
_jump =
animator.addAnimation(this,
SpriteGameCharacter.ANIMATION_PROPERTY_JUMP_VALUE, 2,