jPCT-AE - a 3d engine for Android > Support

setRotationPivot / Config.useRotationPivotFrom3DS on AE

<< < (3/3)

lomac:
Ah, if I call build on the player object (that extends Object3D), and then player.setRotationPivot after that then it works! Previously I only called build on the Object3D "model" prior to it being passed into the constructor of the Player class.

So the bottom line is if you extend Object3D and construct an instance if the class that inherits Object3D, then you have to call build() on this instance, even if the "model" in super(model) already had build() called on it.

Thank you very much for your time to help me sort this out.

EgonOlsen:

--- Quote from: lomac on February 16, 2013, 03:19:01 pm ---So the bottom line is if you extend Object3D and construct an instance if the class that inherits Object3D, then you have to call build() on this instance, even if the "model" in super(model) already had build() called on it.

--- End quote ---
Yes. That's because you can't be sure that you haven't changed anything in the copy that would affect the build() outcome.

Navigation

[0] Message Index

[*] Previous page

Go to full version