Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- abstract class WnkObject(var tobj: TuioObject) {
- var x = calculateX
- var y = calculateY
- var angle = tobj.getAngle
- var angleDegrees = tobj.getAngleDegrees.toInt
- create
- def updateTuioObject(tobj: TuioObject) {
- this.tobj = tobj
- x = calculateX
- y = calculateY
- angle = tobj.getAngle
- angleDegrees = tobj.getAngleDegrees.toInt
- update
- }
- def calculateX = (tobj.getX * 1024).toInt
- def calculateY = (tobj.getY * 768).toInt
- //
- def fxClass
- def create {}
- def update {}
- def destroy {}
- }
- class SampleObject(tobj: TuioObject) extends WnkObject(tobj) {
- override def fxClass = "SampleCircle"
- }
Add Comment
Please, Sign In to add comment