Xabi Posted April 11, 2015 Share Posted April 11, 2015 Hi, I'm doing a spike strips scripts, so I need the X and Y positions of the spikes strips object corners so I can make a colshape with them. Any way to get this? Thanks in advance. Link to comment
WhoAmI Posted April 11, 2015 Share Posted April 11, 2015 getElementDimension, getElementPosition, getElementInterior Link to comment
Xabi Posted April 11, 2015 Author Share Posted April 11, 2015 getElementDimension, getElementPosition, getElementInterior It isn't that what I'm searching. I want to get the position in X and Y axis of each corner of the object. Link to comment
Ryancit2 Posted April 11, 2015 Share Posted April 11, 2015 That is hard somehow but not very much, you'll need to getElementPosition, then for left side corner, subtract some numbers from x axis and then add some numbers in x axis to get the right side corner. Hope you understood the pseudo, although it'll be way too hard to get the accurate positions because in some cases sides are in x-axis and in some cases it'll be in y-axis, you'll have to check how stripes are being placed first. Link to comment
dugasz1 Posted April 11, 2015 Share Posted April 11, 2015 I don't get exactly what do u want to do but if i get it right: You can make a collRecentagle for the spike strips and it will trigger if somebody hit or leave the coll. To create a collShape: Wiki For check the collision: Wiki Link to comment
Ryancit2 Posted April 11, 2015 Share Posted April 11, 2015 He isn't asking about leave/enter sensor, he is talking about right side and left side coords of an object, simple. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now