How to rotate 4 bars in a square formation
freneticz
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
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°.
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
Homepage: freneticgamez.eu/
https://play.google.com/store/apps/developer?id=FreneticGamez
Maybe something here can help:
http://forums.gamesalad.com/discussion/comment/413450/#Comment_413450
A demo of what I describe is attached:
Thanks
Homepage: freneticgamez.eu/
https://play.google.com/store/apps/developer?id=FreneticGamez
@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
Homepage: freneticgamez.eu/
https://play.google.com/store/apps/developer?id=FreneticGamez
I can't do evolving questions
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 , but thats all............ maybe
Homepage: freneticgamez.eu/
https://play.google.com/store/apps/developer?id=FreneticGamez
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).