From: Tony R. <To...@br...> - 2009-07-28 01:20:31
|
I have been trying to no avail to write a routine to transform the coordinates of vector from the global frame to a local one; or even better would be a routine that transforms from one arbitrary frame to another (then global frame is just pos(0,0,0) and axis(1,0,0)). the example in the documentation translates from local-to-global, but i cant seem to reverse it. seems that my vector skills are weak... in this log file visualizer i am working on, i have a sphere traveling thru the global frame, but at a specified point, or at init, i want to inject it into a rotating local frame. i want the switch to the localized frame to appear seamless, thus i need to get the local coordinates relative to the global ones the sphere currently has. is functionality of this type already present somewhere in the module but im missing it? once i apply a frame to an object it immediately moves the coordinates it currently has but relative to the local frame, so it appears to jump thru space. this is great and expected, i just need to get the switchover down now. does anyone have something whipped up already that you could kindly share? otherwise direction of any kind would be greatly appreciated. Thanks, Tony Risinger Application Development Specialist Tel: 507-535-7563 | Fax: 507-292-5747 | Toll Free: 866-241-0639 To...@Br... http://www.brokerbin.com/ CONFIDENTIAL INFORMATION: This electronic mail message and any attached files contain information intended for the exclusive use of the specific individual(s) or entity(s) to whom it is addressed and may contain information that is propriety, privileged or confidential or otherwise exempt from disclosure. If you are not the intended recipient, please notify the sender immediately, by reply electronic mail or by telephone, of any unintended recipients so we may correct our records. Also, delete the original electronic mail and any attachments without making any copies of the electronic mail message or attachments. |