Options
All
  • Public
  • Public/Protected
  • All
Menu

Class b2MouseJoint

Hierarchy

Implements

Index

Properties

Protected _b2joint

_b2joint: b2.Joint | null = null

Protected _body

_body: RigidBody2D | null = null

_isTouched

_isTouched: boolean = false

Protected _jointComp

_jointComp: Joint2D | null = null

_touchPoint

_touchPoint: Vec2 = new Vec2()

Accessors

body

comp

impl

Methods

createJointDef

destroy

  • _destroy(): void

init

  • _init(): void

initialize

isValid

onDisable

  • onDisable(): void

onEnable

  • onEnable(): void

onTouchBegan

  • onTouchBegan(event: Touch): void

onTouchEnd

  • onTouchEnd(event: Touch): void

onTouchMove

  • onTouchMove(event: Touch): void

setDampingRatio

  • setDampingRatio(v: number): void

setFrequency

  • setFrequency(v: number): void

setMaxForce

  • setMaxForce(v: number): void

setTarget

start

  • start(): void

update

  • update(): void

Generated using TypeDoc