There's a joke in there somewhere.
Anyhoot. In the following code, the setForceVector
method has no actual effect on the value of member it's attempting to change. By checking the log, I can see the function is being called (by another object handling to a touchEvent
).
I've used NSLog to check that the forceVectorfromControls
is actually coming across as expected and it is.
If I set the value of forceVector
in the init or step methods it works as intended. But for some reason, it does nothing in the setForceVector
method.
cpVect
is a C struct, does that have anything to do with it?
I'm stumped.