Rev 1770 | Rev 1774 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1770 | chris | 1 | package com.gebauz.bauzoid2.graphics.animation; |
| 2 | |||
| 3 | import com.gebauz.bauzoid2.graphics.model.ModelNode; |
||
| 4 | import com.gebauz.bauzoid2.math.Quaternion; |
||
| 5 | |||
| 6 | /** |
||
| 7 | * Created by cchiu on 20.01.2015. |
||
| 8 | */ |
||
| 9 | public class BoneKeyframes |
||
| 10 | { |
||
| 11 | // Constants======================================================================================== |
||
| 12 | |||
| 13 | // Embedded Types=================================================================================== |
||
| 14 | |||
| 1773 | chris | 15 | public static class RotationKey |
| 16 | { |
||
| 17 | public float time = 0.0f; |
||
| 18 | public Quaternion rotation = null; |
||
| 19 | |||
| 20 | public RotationKey(float t, Quaternion r) |
||
| 21 | { |
||
| 22 | time = t; rotation = r; |
||
| 23 | } |
||
| 24 | } |
||
| 25 | |||
| 1770 | chris | 26 | // Fields=========================================================================================== |
| 27 | |||
| 28 | private ModelNode mBone = null; |
||
| 1773 | chris | 29 | private RotationKey[] mRotations = null; |
| 1770 | chris | 30 | |
| 31 | // Methods========================================================================================== |
||
| 32 | |||
| 33 | // Getters/Setters================================================================================== |
||
| 34 | |||
| 1773 | chris | 35 | public final void setRotationKeys(RotationKey[] times) { mRotations = times; } |
| 36 | public final RotationKey[] getRotationKeys() { return mRotations; } |
||
| 1770 | chris | 37 | |
| 38 | } |