Difference between revisions of "TranslateTo - ObjectReference"

Jump to navigation Jump to search
1,420 bytes added ,  08:15, 22 October 2012
Collison boxes & bugs
imported>Fg109
(added note, changed description of angle parameters)
imported>Perdev
(Collison boxes & bugs)
Line 46: Line 46:
*The OnTranslationComplete event will fire when the object reaches both the target position and target rotation.
*The OnTranslationComplete event will fire when the object reaches both the target position and target rotation.
*The OnTranslationAlmostComplete event can fire even when the target rotation is far from being reached.
*The OnTranslationAlmostComplete event can fire even when the target rotation is far from being reached.
== Collision boxes, bugs and other oddities ==
The collision "boxes" may not be updated after using this function. Here are some of the observations reported on the forums. [http://forums.bethsoft.com/topic/1383367-getting-collisions-to-move-with-translateto/page__view__findpost__p__20989813 (source)]
* The collision box is property updated for moveable statics.
* The collision box is not moved for other static objects. To fix this the object must be declared as a MoveableStatic and its mesh must have the bhkRigidBody settings corrected (see [http://forums.bethsoft.com/topic/1383367-getting-collisions-to-move-with-translateto/page__view__findpost__p__20988707 this post]).
* The collision box is voided for actors (but they will still collide with the ground). They will go through other actors, activators, etc.
Besides of that, a few bugs and oddities have been reported:
* Using havok collision in an activator then trying to translate it doesn't work... it just sits there motionless.
* You can however translate an enabled activator when it has no 3D... meaning you can do it from ANYWHERE at any time - as long as it was enabled (and a slight wait or other function afterwards).
* The function does not work on MiscItems (presumably for the same reason). [[SetPosition - ObjectReference]] works though.
* You cannot translate something that is disabled (or was just enabled). You will get a no3D error.


== See Also ==
== See Also ==
Anonymous user

Navigation menu