3D Graphics with Metal · Materials | raywenderlich.com

This is a companion discussion topic for the original entry at https://www.raywenderlich.com/1258241-3d-graphics-with-metal/lessons/26
1 Like

Hi. I hope you and your family are fine with this SRAS all around the world.

I’ve run code (final or starter with following tutorial) I have issue when I move mouse. That pointed error : rotation.y += delta.x * sensitivity Thread 1: EXC_BAD_ACCESS (code=EXC_I386_GPFLT)

I don’t remember that happen on old Xcode, now is xcode 11.4

Do you know where that can be ?
I’ve already clean xcode.

It’s scary, but so far :crossed_fingers:!

If you set all three rotations at once, it should be ok:

let y = rotation.y + delta.x * sensitivity
rotation = [rotation.x, y, rotation.z]

Try that!

I don’t know if you can see this thread from the Metal by Tutorials book: https://forums.kodeco.com/t/simd-badaccess-error

Thanks. that’s works now.
maybe end of year with new CPU on Mac that will bring new bug too :).

good day or evening, I will go sleep now is 1am in Paris.

1 Like