Rotating an object and not efecting direction
Posted: Wed Aug 30, 2017 2:18 pm
Hi Guys,
I have hit a bit of an issue and I think my matrix maths is the problem. I have a hover board in my game which moves and floats well (thanks norbo) I am now trying to lift the front when the player moves forward I thought this was going to be simple by applying a small X rotation to the orientation matrix but this causes 2 issues firstly it wipes the existing rotation values and secondly this make the boards forward vector move up as well is the any way of adding the rotation matrix and also for it to not effect the forward vector? Hope that makes sense
I have hit a bit of an issue and I think my matrix maths is the problem. I have a hover board in my game which moves and floats well (thanks norbo) I am now trying to lift the front when the player moves forward I thought this was going to be simple by applying a small X rotation to the orientation matrix but this causes 2 issues firstly it wipes the existing rotation values and secondly this make the boards forward vector move up as well is the any way of adding the rotation matrix and also for it to not effect the forward vector? Hope that makes sense