Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added missing Decal.setRotation method. #2111

Merged
merged 3 commits into from Jul 27, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 9 additions & 0 deletions gdx/src/com/badlogic/gdx/graphics/g3d/decals/Decal.java
Expand Up @@ -143,6 +143,15 @@ public void rotateZ (float angle) {
updated = false;
}

/** Sets the rotation of this decal to the given angles on all axes.
* @param yaw Angle in degrees to rotate around the Y axis
* @param pitch Angle in degrees to rotate around the X axis
* @param roll Angle in degrees to rotate around the Z axis */
public void setRotation (float yaw, float pitch, float roll) {
rotation.setEulerAngles(yaw, pitch, roll);
updated = false;
}

/** Sets the rotation of this decal based on the (normalized) direction and up vector.
* @param dir the direction vector
* @param up the up vector */
Expand Down