From d5c7c19a5540a6485aa782ad20657010065d444c Mon Sep 17 00:00:00 2001 From: John Sundell Date: Mon, 30 Oct 2017 20:55:03 +0100 Subject: [PATCH] Actor: Document that scale now affects collision detection --- Sources/Core/API/Actor.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Core/API/Actor.swift b/Sources/Core/API/Actor.swift index d1b4508..6afa603 100644 --- a/Sources/Core/API/Actor.swift +++ b/Sources/Core/API/Actor.swift @@ -41,7 +41,7 @@ public final class Actor: InstanceHashable, ActionPerformer, Activatable, Movabl public private(set) var rect = Rect() { didSet { rectDidChange() } } /// The rotation of the actor along the z axis. public var rotation = Metric() { didSet { layer.rotation = rotation } } - /// The scale of the actor. Does not affect its size, rect or collision detection. + /// The scale the actor gets rendered at. Affects collision detection unless a hitboxSize is set. public var scale: Metric = 1 { didSet { scaleDidChange(from: oldValue) } } /// The velocity of the actor. Used for continous directional movement. public var velocity = Vector() { didSet { velocityDidChange(from: oldValue) } }