www.tombraiderforums.com  

Go Back   www.tombraiderforums.com > Tomb Raider Modding > Tomb Raider Level Editor > Next Generation Level Editor

Reply
 
Thread Tools
Old 27-12-21, 18:55   #1
justin
Professor
 
Join Date: Aug 2001
Location: CT, USA
Posts: 4,459
Default Rotate object around another point

Hi everyone! Has anyone else tried getting an object to rotate around another item, possibly using a plugin? We can rotate everything and anything around itself. That is, the object will rotate on it's on center-point. However, I want to try rotating Object A around Object B, so that I can check the distance between Object A and say, Object C. Hopefully that makes sense

I may try learning how to write plugins to attempt this, but figured I'd ask if anyone else has done this.

Thanks!
__________________
Nothing is impossible, just impractical
justin is online now   Reply With Quote
Old 28-12-21, 12:20   #2
AkyV
Moderator
 
Join Date: Dec 2011
Location: Hungary
Posts: 4,565
Default

Hello!
Not all the rotations are happening around itself:

; <&> Turn. Turn <#>Animating around the center at -X direction (west) (E)Distance in circular way (A80)

The rotation axis is in the extension of the east-west axis of the object.
The position from the object is defined in sectors, in the E value. (This is where you can place the other object.)
OCB (bigger than 127) typed in the object can modify the rotation speed.

To stop the rotation:
- General:
; <&> Disable. Disable all continuous actions on <#>Moveable (A47)
- Specified:
; <&> Turn. Stop circular turning for <#>Animating item in (E)way (A81)

If you choose in A81 "pause" mode to stop, then that is immediate, but it keeps the original rotation axis. - Now you can resume the rotation from that point:

; <&> Turn. Resume circular turning of <#>Animating previously put in Pause (A85)

Note:
The collision box may not be synchronized to the object at big speeds.

Last edited by AkyV; 28-12-21 at 12:28.
AkyV is offline   Reply With Quote
Old 28-12-21, 13:09   #3
justin
Professor
 
Join Date: Aug 2001
Location: CT, USA
Posts: 4,459
Default

Ah this is brilliant, thanks Aky! I knew i'd miss something that was always there

I'll give this a try later
__________________
Nothing is impossible, just impractical
justin is online now   Reply With Quote
Old 28-12-21, 20:20   #4
justin
Professor
 
Join Date: Aug 2001
Location: CT, USA
Posts: 4,459
Default

A very interesting Action trigger for sure! It won't work for my application (I need objects to rotate around different center-points, depending on their location), but this could prove very useful later on
__________________
Nothing is impossible, just impractical
justin is online now   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 02:41.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, vBulletin Solutions Inc.