Home    LittleBigPlanet 2 - 3 - Vita - Karting    LittleBigPlanet 2    [LBP2] Help!
#1

restricting an objects movement

Archive: 9 posts


Hey guys,

So basically i want to restrict a block of materials movement, its being controlled with an advanced mover, but i want it to stay within a fixed square area.
I can't just have physical material stopping it, it can't have a visible barrier, i was thinking about using pistons or strings or something, but there must be an easier, more effective solution. Would followers help?

thanks
2011-03-20 13:52:00

Author:
Unknown User


1) Make your square barrier out of invisible hologram, then attach a tag to each side labelling/colouring them differently.

2) On your moveable block have a microchip. On this, have a directional combiner attached to the left/right input of your advanced mover plus another one attached to the up/down input.

3) Attach a directional splitter to each one of your left/right and up/down D-pad/analogue stick outputs, depending on which you're using.

4) Set up a tag sensor with a 180 degree detection range, the flat edge pointing up and max radial range extending out beyond the sides of your holo box, it'll need to be about double the length. Set it to trigger with the tag on to top of your holo box. Either invert its output or attach it to the input of a NOT gate.

5) Connect the up output of the directional splitter (positive) to one input of an AND gate and connect the tag sensor/NOT gate output to the other.

6) Connect the AND gate's output to the up input of the directional combiner (positive) on the advanced mover.

This setup will mean you can move the block up until it hits the top sensor, then it cuts off the input. Repeat these steps for the other 3 directions but rotate the tag sensor accordingly.
2011-03-20 14:49:00

Author:
Xaif
Posts: 365


I can't just have physical material stopping it, it can't have a visible barrier...

What about an invisible physical barrier? See this post (https://lbpcentral.lbp-hub.com/index.php?t=17759-Creating-Editable-Invisible-Material-In-Seconds) for a guide on making physical material invisible.
2011-03-20 19:53:00

Author:
Aya042
Posts: 2870


kinda.. useless to say this..
but what yaya said!
2011-03-20 20:28:00

Author:
Luos_83
Posts: 2136


Thanks xaif, that sounds good, but when I move into the 'barrier' will it still be possible to move the object back out of the barrier?2011-03-21 09:13:00

Author:
Unknown User


Thanks xaif, that sounds good, but when I move into the 'barrier' will it still be possible to move the object back out of the barrier?

That is what I have found a bit tricky when using holo material as barriers (I use thin strips of rubber when I can). When a solid barrier cannot be used (i.e. other objects/bots/players need to move through) tag the barrier and make the restricted object flee that tag when it impacts with it.

Edit: to clarify, set a follower to flee to make the object flee. It also means that the object needs to abandon whatever routine it was in, so I suggest using a selector for the states the object can be in. Hook a chip on each output and stuff it with logic for each situation. As only one chip can be on at the time now, switching states will cancel all other states (which will likely contain movers).
2011-03-21 10:11:00

Author:
Antikris
Posts: 1340


The flee idea seems good, except my object isn't in any routine, it's just constantly controlled by an advanced mover / controllinator.

The thin/invisible layer of rubber seems good, but is there any material which is silent upon impact which I could use?
2011-03-21 10:18:00

Author:
Unknown User


The flee idea seems good, except my object isn't in any routine, it's just constantly controlled by an advanced mover / controllinator.

The thin/invisible layer of rubber seems good, but is there any material which is silent upon impact which I could use?

Use the material tweaker to disable physics sounds
2011-03-21 13:42:00

Author:
thor
Posts: 388


Thanks xaif, that sounds good, but when I move into the 'barrier' will it still be possible to move the object back out of the barrier?

It will yeah, if you wire up each direction independently it will only turn off the direction that overlaps with the barrier, the other three directions (two if the box is in a corner) will still be functional. Once you move out of the holo barrier in the opposite direction, the direction that was cut off will be working again.

Or you could just use what the others posted about the invisible wall. I didn't know that was possible, and I don't know how easy it is to manipulate if you need to alter it and whether or not you can place logic objects to it to disable sounds etc. Either way will work though.
2011-03-21 14:16:00

Author:
Xaif
Posts: 365


LBPCentral Archive Statistics
Posts: 1077139    Threads: 69970    Members: 9661    Archive-Date: 2019-01-19

Datenschutz
Aus dem Archiv wurden alle persönlichen Daten wie Name, Anschrift, Email etc. - aber auch sämtliche Inhalte wie z.B. persönliche Nachrichten - entfernt.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.