[done]getAbsolutePosition - Clarification of header note

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
robmar
Posts: 1125
Joined: Sun Aug 14, 2011 11:30 pm

[done]getAbsolutePosition - Clarification of header note

Post by robmar »

I didn´t realize that getAbsolutePosition could return non-actualised results until I´d done a good few circles, so wondered if maybe updating the header note might be useful, that is, if I´ve now got this right!! Please don´t shoot me if I´ve got this wrong! :oops:

From ISceneNode.h
//! Gets the absolute position of the node in world coordinates.
/** If you want the position of the node relative to its parent,
use getPosition() instead.

> NOTE: This function may return incorrect values unless updateAbsolutePosition() has been called.
> drawAll (animate) calls this function, ensuring that return values are correct until the next cam->setPosition call.

\return The current absolute position of the scene node (provinding that updateAbsolutePosition was called). */
virtual core::vector3df getAbsolutePosition() const
{
return AbsoluteTransformation.getTranslation();
}

//

Original:-
//! Gets the absolute position of the node in world coordinates.
/** If you want the position of the node relative to its parent,
use getPosition() instead.
\return The current absolute position of the scene node. */
virtual core::vector3df getAbsolutePosition() const
{
return AbsoluteTransformation.getTranslation();
}
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: getAbsolutePosition - Clarification of header note

Post by hybrid »

Yeah, why not.
Post Reply