Trigger an atom to teleport to another atom's position and rotation?

rosey

New member
Messages
7
Reactions
1
Points
3
I'm creating a scene where, on a trigger, I want to teleport an atom (person atom or a SubScene atom) to the position/rotation of an empty atom somewhere else in the scene. Basically I want what is already available through the "move" UI ("select align to from scene") but called from a trigger/UI button/etc.

I tried all of the "align" plug-ins I could find, but with no luck. Seems like a pretty straightforward operation, but for the life of me, I just can't figure out a good way to do it. Any help would be greatly appreciated!
 
RubberLeash plugin by AcidBubbles does this.
You add plugin to the atom you want to teleport. Align it with your target atom (the empty atom), then record its position+rotation in RubberLeash. Set a leash weight which decides how quickly the atom will teleport to the target atom. Then you can enable/disable the plugin with triggers to set the atom free to move or teleport to the target atom.
 
Amazing, thank you, I'm going to give this a try.
Ah, crap, I'm not sure this will work after all. The atom I need to teleport to is dynamic. It could be in a any number of locations and angles at any given time that I call the teleport to happen.
 
For the player, (if that's what Person is, assuming the player is possessing) I would highly recommend to not do that and either go Embody or Spawn Point.

If you're talking about "simply" a person (like a character teleporting). You should not rely on teleporting the atom, since the physics is gonna go nutz.
Either use Timeline, and do a "start pose" animation with the root saved and use that. Or, a pose preset as Clownmug suggests.

For other atoms, like CUA, or whatever shape. If it does not exists, a plugin to do that is not very complicated. If you can't find a solution, I could add that into VAMStory toolset at some point.
 
Ah, crap, I'm not sure this will work after all. The atom I need to teleport to is dynamic. It could be in a any number of locations and angles at any given time that I call the teleport to happen.

Maybe I didn't specify the steps clearly. The rubberleash based teleport is dynamic to wherever the target atom is in the scene. Here's a quick demo video of the rubberleash setup I described. Does this match the intended behavior?
You can set the rubberleash weight to 1.0 for instant teleport. But as hazmhox mentioned, this isn't ideal for Person atoms due to collision or physics issues. If you do want to use this for Person atoms, you can make the teleport trigger a chain of actions where you disable collision, physics etc -> teleport -> then re-enable everything.

 
Have you tried loading a pose preset with stored root node?
Yes, that works great if the person atom needs to be in that same spot every time, but as the user progresses through my various setups, I occasionally need to teleport a group of atoms (including a person) to another empty atom somewhere dynamic (the atom could be anywhere in the scene, depending on various parameters).
For the player, (if that's what Person is, assuming the player is possessing) I would highly recommend to not do that and either go Embody or Spawn Point.

If you're talking about "simply" a person (like a character teleporting). You should not rely on teleporting the atom, since the physics is gonna go nutz.
Either use Timeline, and do a "start pose" animation with the root saved and use that. Or, a pose preset as Clownmug suggests.

For other atoms, like CUA, or whatever shape. If it does not exists, a plugin to do that is not very complicated. If you can't find a solution, I could add that into VAMStory toolset at some point.
Thanks so much for taking the time to reply and for offering this a possible addition to VamStory (I could see this being a welcome utility for what that PlugIn does, actually).

SpawnPoint does indeed work elegantly for the player (already using it). Thanks for the info on person atoms and physics. Pose Presets in combo with Timeline or Rubberleash may be the answer. Although I admit it's frustrating that something that is already in the base "move" interface (the "select align to from scene" button) isn't just exposed/accessible somehow to triggers/etc. (although I can see Hazmhox's/CheekiBreeki's point about person physics going nuts when I try that in-game on a person atom).

Either way, all of these suggestions gives me options to try today and I can't thank you all enough, very cool and appreciated.
 
Maybe I didn't specify the steps clearly. The rubberleash based teleport is dynamic to wherever the target atom is in the scene. Here's a quick demo video of the rubberleash setup I described. Does this match the intended behavior?
You can set the rubberleash weight to 1.0 for instant teleport. But as hazmhox mentioned, this isn't ideal for Person atoms due to collision or physics issues. If you do want to use this for Person atoms, you can make the teleport trigger a chain of actions where you disable collision, physics etc -> teleport -> then re-enable everything.

View attachment 425759
This is great, let me mess around with this today. This community is above-and-beyond helpful and posting a video like this to try to help a stranger solve a minor issue is quite incredible. I have some tinkering to do but I think I'll be able to acheive the expected behavior.
 
Pose Presets in combo with Timeline or Rubberleash may be the answer. Although I admit it's frustrating that something that is already in the base "move" interface (the "select align to from scene" button) isn't just exposed/accessible somehow to triggers/etc.

I'd recommend to use poses only if you don't need a timeline animation. If you're using Timeline already, simply use the integrated Pose system, it's flawless : )
 
Back
Top Bottom