How to rotate 4 bars in a square formation

freneticzfreneticz SwedenMember, PRO Posts: 774

Cant find any help for this , want to rotate a square build by 4 actors(one for each side) around a point

///

Comments

  • SocksSocks London, UK.Member Posts: 12,822

    Check out the COM (centre of mass) function.

    Make one 'side' actor, position the COM so that it positions the side where you need it, then make three more instances and rotate them by 90°, 180° and 270°.

  • freneticzfreneticz SwedenMember, PRO Posts: 774

    might have describe it wrong , think of a sqare and just rotate it , and now make the square of 4 bars instead .... dont know if that can be done like you say @Socks

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,880
  • SocksSocks London, UK.Member Posts: 12,822

    @freneticz said:
    might have describe it wrong , think of a sqare and just rotate it , and now make the square of 4 bars instead .... dont know if that can be done like you say @Socks

    A demo of what I describe is attached:

  • freneticzfreneticz SwedenMember, PRO Posts: 774

    @Socks said:

    @freneticz said:
    might have describe it wrong , think of a sqare and just rotate it , and now make the square of 4 bars instead .... dont know if that can be done like you say @Socks

    A demo of what I describe is attached:

    Thanks

  • freneticzfreneticz SwedenMember, PRO Posts: 774
    edited December 2016

    @Socks and now next question, i want a actor collide with them without them move away

    i change the density to 10000 and the actor that collides with them to 0, but they not stay there....... they seems to move on a million to

  • SocksSocks London, UK.Member Posts: 12,822
    edited December 2016

    @freneticz said:
    @Socks and now next question, i want a actor collide with them without them move away

    I can't do evolving questions :D

    Ideally you'd state what you are trying to achieve in a single question (not piece by piece), otherwise people are probably wasting their time trying to help out, of course I didn't know you wanted objects to collide with this square as you'd kept that information out of your question - so the suggested solution doesn't take that into account and probably isn't ideal for what you need.

    The problem here is that if I were to now offer you another solution that allows collisions without having the square move, then there is every chance you will then add in another requirements (now I need the whole thing to do X or Y) . . . which could then make my new suggestion invalid as well . . . etc etc.

    Hope that makes sense ?

  • freneticzfreneticz SwedenMember, PRO Posts: 774
    edited December 2016

    @Socks said:

    @freneticz said:
    @Socks and now next question, i want a actor collide with them without them move away

    I can't do evolving questions :D

    Ideally you'd state what you are trying to achieve in a single question (not piece by piece), otherwise people are probably wasting their time trying to help out, of course I didn't know you wanted objects to collide with this square as you'd kept that information out of your question - so the suggested solution doesn't take that into account and probably isn't ideal for what you need.

    The problem here is that if I were to now offer you another solution that allows collisions without having the square move, then there is every chance you will then add in another requirements (now I need the whole thing to do X or Y) . . . which could then make my new suggestion invalid as well . . . etc etc.

    Hope that makes sense ?

    Yes i understand :blush: , but thats all............ maybe :)

  • SocksSocks London, UK.Member Posts: 12,822

    @freneticz said:
    Yes i understand :blush: , but thats all............ maybe :)

    Lol :)

    You could try and play around with the density of the actors involved, for example set density for the walls of the square on something like 100,000 - and the density of the objects that will collide with it on 1 (don't put them on 0).

Sign In or Register to comment.