ryerrabelli / jmonkeyengine

Automatically exported from code.google.com/p/jmonkeyengine
0 stars 0 forks source link

MotionTrack HardCoded Parameter in computeTargetDirection method #418

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello, 

I was using the com.jme3.cinematic.events.MotionTrack class

And my issue is that in "Path" or "PathAndRotation" DirectionType it can only 
works with Y axis.

In the method : computeTargetDirection the lookAt method use an harcoded 
constant : Vector3f.UNIT_Y

In my case I had to use Vector3f.UNIT_Z, It would nice that this value could be 
set.
(Or make computeTargetDirection protected to be easily overridden).

Original issue reported on code.google.com by jppr...@gmail.com on 13 Nov 2011 at 4:40

GoogleCodeExporter commented 8 years ago

Original comment by ShadowIs...@gmail.com on 11 Feb 2012 at 8:03

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r10039.

Original comment by remy.bou...@gmail.com on 22 Dec 2012 at 3:02

GoogleCodeExporter commented 8 years ago
fixed you now have an additional setDirection(direction, upVector)

Original comment by remy.bou...@gmail.com on 22 Dec 2012 at 3:03