An Anchor Point is the "handle" or "point" of the View/Element where transformations like Scale, Rotation and Translation will revolve around. This anchor point can be set outside the element.
Questions tagged [anchorpoint]
78 questions
4
votes
2 answers
How to change anchor point?
I'm working with SceneKit. The object SCNNode is rotated relative to the center. How to change anchor point of the SCNNode?
SCNScene *scene = [SCNScene new];
SCNBox *boxGeometry = [SCNBox boxWithWidth:384.f height:512.f length:20.f…

Sveta
- 1,270
- 3
- 16
- 33
3
votes
1 answer
Anchor points in Swift Bugging?
I tried to understand the basics of anchor points in swift reading this :
https://developer.apple.com/library/ios/documentation/GraphicsAnimation/Conceptual/SpriteKit_PG/Nodes/Nodes.html
I understood that in siwft, with sprite kit, the anchor point…
user1849661
3
votes
1 answer
calculate centroid of SKSpriteNode for anchor point
I have a SKSpriteNode which is an image of a equilateral triangle, I want to set it's anchor point at the triangle's centroid so I can get it to rotate smoothly and remain in centre. I have calculated the centroid with the code bellow but these…

jm1175
- 165
- 10
3
votes
2 answers
What are Unity RectTransform anchors for, and how do they affect the gameObject?
I was just curious if anybody here knows a bit about Unity RectTransform Anchors for? Basically, why have them at all? They just confused me. The other part of the question is how they affect the gameObject, this would really help me out with my UI…
user5627819
3
votes
0 answers
How can I adjust my image position after I change the anchor point? (Swift)
I am using UIGestureRecognizer to make the pinch action and I need to change the anchor point to resize to the correct point of my UIImage. After I change the anchor point, the image moves a little bit, and I need to put it back to the origin. Here…

Ami Garcia
- 31
- 3
2
votes
1 answer
NSView not rotating around center
I'm trying to rotate a NSView around its center. But even if I change the anchorPoint, the NSView continue to rotate around its top left corner. Just a precision : I'm working on OSX 10.8.5.
Thanks in advance for your help.
Here is my code :
//…

Jeff Dolphin
- 47
- 6
2
votes
1 answer
php CodeIgniter-3.1.3 Tab paging and Anchor point
I have a tab, and I access them "news#p1, news#p2, news#p3".But when I paging today, my url like this "http://local.test.com/home/news#p1/2".
controller
public function news($id)
{
if ($id) {
$this_page=$id;
…

Fade
- 35
- 9
2
votes
0 answers
Swift : How to adjust texture/image to physicsBody's position after changing anchor point?
After changing the anchor point on my SKTexture, my texture now has the desired anchor point, but my physicsBody does not. Before i changed the anchor point they were happy together at the same position.
visual
This is the only code i wrote…

Jennifer Andrén
- 21
- 4
2
votes
1 answer
Anchor Points Do Not Follow Polygon - JavaFX
Currently I have a polygon which can be resized and shaped as required. The problem is when I move the polygon the anchor points remain fixed to their position and do not move with the polygon, I am really confused and was hoping someone could help…

TheBeliever12
- 97
- 8
2
votes
1 answer
SVG- how to define reference/anchor points
Is it possible to define some kind of anchor/reference point inside an SVG? Ideally as an attribute, probably custom, as I haven't found some built in.
A possible application of such an attribute would be very similar to the one of…

ioandr
- 41
- 2
- 5
2
votes
0 answers
How to scale view about a point without using anchorPoint?
I know we can scale a view about a point using anchorPoint, but how can we have the same effect without touching the anchorPoint?

Morty Choi
- 2,466
- 1
- 18
- 26
2
votes
0 answers
Get object position relative to it's center, regardless of anchor point used
Is there a way to position an object relative to another objects center point (to be precise, centered on the object) regardless of what the parent objects anchor point is?
Consider the following scenario, where we want to position object B in the…

PersuitOfPerfection
- 1,009
- 1
- 15
- 28
2
votes
0 answers
How to change the anchorPoint for a transformation in UICollectionViewLayoutAttributes?
I am using UICollectionViewLayoutAttributes to apply a transform to one of my cells.
The transform I would like to apply is
CATransform3D transform = CATransform3DMakeTranslation(dx, dy, 0);
attributes.transform3D =…

Colas
- 3,473
- 4
- 29
- 68
2
votes
1 answer
Jump to HTML anchor automatically when PHP form submits
I am trying to add a form into my index page, so that when you click on submit it will automatically return to the form when the page reloads. Right now if there are any errors on the page it will display them right above the form as well as give a…

Mizex
- 65
- 3
- 6
2
votes
3 answers
How to use html anchor with space?
I wan't to access a wikipedia page with anchor - I'm not sure if this a 'wikipedia' or HTML related question
Access a single word with an anchor is easy
http://en.wikipedia.org/wiki/Wake-on-LAN#History ✔
But how can I access a header with…

Lucas
- 3,376
- 6
- 31
- 46