Fix for object depths and proper depths for rotated objects
This commit is contained in:
@ -14,10 +14,7 @@ export class BaseMapObject extends BaseEntity {
|
||||
tags: string[] = []
|
||||
|
||||
@Property({ type: 'json' })
|
||||
depthOffsets = [0]
|
||||
|
||||
@Property({ type: 'json' })
|
||||
pivotPoints: { x: number; y: number }[] = []
|
||||
depthOffsets: number[] = [0]
|
||||
|
||||
@Property({ type: 'decimal', precision: 10, scale: 2 })
|
||||
originX = 0
|
||||
@ -67,15 +64,10 @@ export class BaseMapObject extends BaseEntity {
|
||||
return this.tags
|
||||
}
|
||||
|
||||
setDepthOffsets(offsets: any) {
|
||||
setDepthOffsets(offsets: number[]) {
|
||||
this.depthOffsets = offsets
|
||||
}
|
||||
|
||||
setPivotPoints(pivotPoints: { x: number; y: number }[]) {
|
||||
this.pivotPoints = pivotPoints
|
||||
return this
|
||||
}
|
||||
|
||||
getDepthOffsets() {
|
||||
return this.depthOffsets;
|
||||
}
|
||||
|
Reference in New Issue
Block a user