Class: Arm
Hierarchy
-
Group↳
Arm
Constructors
constructor
• new Arm(options?): Arm
Parameters
| Name | Type |
|---|---|
options | Partial<ArmOptions> |
Returns
Overrides
THREE.Group.constructor
Properties
emitSwingEvent
• emitSwingEvent: () => void
Type declaration
▸ (): void
Returns
void
options
• options: ArmOptions
Methods
connect
▸ connect(inputs, namespace?): () => void
Connect the arm to the given input manager. This will allow the arm to listen to left and right clicks to play arm animations. This function returns a function that when called unbinds the arm's keyboard inputs.
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
inputs | Inputs<any> | undefined | The Inputs instance to bind the arm's keyboard inputs to. |
namespace | string | "*" | The namespace to bind the arm's keyboard inputs to. |
Returns
fn
▸ (): void
Returns
void
doSwing
▸ doSwing(): void
Perform an arm swing by playing the swing animation and sending an event to the network.