Skip to content

Commit

Permalink
Actor: Document that scale now affects collision detection
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnSundell committed Oct 30, 2017
1 parent 50d2881 commit d5c7c19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Core/API/Actor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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) } }
Expand Down

0 comments on commit d5c7c19

Please sign in to comment.