我正在尝试使用方法GLKVector3MakeWithArray创建一个向量。将'float'传递给'float *'的不兼容类型
我收到以下错误,我有点不解,为什么,“传递‘浮动’不兼容类型‘浮动*’的”
这里是我的代码:
[self.offsetArray addObject:[jsnmphset valueForKey:@"offset"]];
// Create a Vector3f from the array offset stored in the nsdictionary
GLKVector3 offset = GLKVector3MakeWithArray([[self.offsetArray objectAtIndex:0] floatValue]);
谢谢
您认为这个错误可能意味着什么?你试图做什么来纠正这个问题?您在搜索解决方案时迄今收集了哪些信息?总之,[你有什么尝试](http://mattgemmell.com/2008/12/08/what-have-you-tried/)? GLKVector3偏移= GLKVector3Make( [[self.offsetArray objectAtIndex:0]的floatValue], [[self.offsetArray objectAtIndex:1]的floatValue], [[self.offsetArray – 2013-02-24 20:54:54
我已经通过执行以下操作中创建围绕工作objectAtIndex:2] floatValue] ); – samb90 2013-02-24 20:55:43