Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Clean up
  • Loading branch information
bnjm committed Feb 21, 2018
commit f293838d6974b53e394d9c86ff1c3e66fff18701
7 changes: 2 additions & 5 deletions ios/RCTConvert+ARKit.m
Original file line number Diff line number Diff line change
Expand Up @@ -333,18 +333,15 @@ + (void)setMaterialPropertyContents:(id)property material:(SCNMaterialProperty *
}

if (property[@"rotation"]) {
float angle = [property[@"rotation"][@"angle"] floatValue];
float a = [property[@"rotation"][@"angle"] floatValue];
float x = [property[@"rotation"][@"x"] floatValue];
float y = [property[@"rotation"][@"y"] floatValue];
float z = [property[@"rotation"][@"z"] floatValue];

m = SCNMatrix4Mult(m, SCNMatrix4MakeRotation(angle, x, y, z));
m = SCNMatrix4Mult(m, SCNMatrix4MakeRotation(a, x, y, z));
}

if (property[@"scale"]) {

NSLog(@"%@", property[@"scale"]);

float x = [property[@"scale"][@"x"] floatValue];
float y = [property[@"scale"][@"y"] floatValue];
float z = [property[@"scale"][@"z"] floatValue];
Expand Down