Commit graph

180 commits

Author SHA1 Message Date
James B. Pollack
e928c8278b overload a single function and cleanup, add examples 2015-11-06 11:48:51 -08:00
James B. Pollack
6392b7080b move scripts no longer in toybox to better locations 2015-10-23 10:36:32 -07:00
James B. Pollack
384a6a8154 rename /toys to /toybox, remove non toybox scripts, update master refs 2015-10-21 11:36:49 -07:00
Brad Hefta-Gaub
7a85e5b7a7 rename frameIndex to currentFrame 2015-10-07 13:02:58 -07:00
Brad Hefta-Gaub
02536a5ab9 remove animationSettings from particles, add isEmitting 2015-10-02 14:17:01 -07:00
ericrius1
5ba8f15d9f test 2015-09-24 16:32:01 -07:00
Brad Hefta-Gaub
8fef47a488 Merge pull request #5873 from ericrius1/grabAPI
[Scripts] handControllerGrab.js now handles touches.  Also handles grabs on non-colliding objects
2015-09-24 15:58:14 -07:00
James Pollack
9eb3b56e5d Remove space before and after function calls, add spaces btw functions 2015-09-24 15:03:02 -07:00
James Pollack
381a24951e Update grab script to handle touching, better naming for non colliding grab functions 2015-09-23 16:56:46 -07:00
ericrius1
c7cb77a6ab moved spraycan into toybox folder, and added spraypaint sound 2015-09-23 12:08:28 -07:00
David Rowe
eb01ba9812 Merge branch 'master' into 20681 2015-09-23 09:42:56 -07:00
ericrius1
13d7834902 Merge remote-tracking branch 'upstream/master' into toybox 2015-09-21 14:51:33 -07:00
Seth Alves
fd1c8f6389 fix releaseGrab in test script 2015-09-18 17:39:50 -07:00
David Rowe
812ab9b7c6 Merge branch 'master' into 20681
Conflicts:
	libraries/entities/src/EntityItemProperties.cpp
2015-09-18 16:44:04 -07:00
Seth Alves
3d18edd9d1 update detectGrabExample.js 2015-09-18 15:13:09 -07:00
Brad Hefta-Gaub
0d37511071 add support for scripts to call methods on entity scripts 2015-09-18 14:06:38 -07:00
David Rowe
03194437f5 Merge branch 'master' into 20681
Conflicts:
	examples/entityScripts/sprayPaintCan.js
2015-09-18 12:04:02 -07:00
David Rowe
68874eed96 Update particle scripts 2015-09-18 11:34:26 -07:00
ericrius1
ae795a5c4f spray paint spawner working 2015-09-17 17:15:59 -07:00
ericrius1
bbf6e8b599 using relative paths for entity scripts 2015-09-16 13:52:29 -07:00
ericrius1
0b21cc1777 paint can tweaks 2015-09-16 09:59:35 -07:00
ericrius1
da208526cc spray can tweaks 2015-09-15 16:48:28 -07:00
ericrius1
9648f56062 some fixups to spray paint script 2015-09-15 15:48:21 -07:00
ericrius1
0a46db60ac spawning particles on grab and deleting on release, with a lifetime, for better cleanup of particles 2015-09-11 12:01:01 -07:00
ericrius1
eabdd1f4d9 quick fix for particles hanging around 2015-09-11 11:33:21 -07:00
ericrius1
6e46e3d3b6 cleanup for paintcan 2015-09-11 11:24:53 -07:00
ericrius1
1991ba0eba absolute path for now- just for testing purposes before merge 2015-09-11 09:37:03 -07:00
ericrius1
7969fb64ce tweaking distance threshold 2015-09-10 17:08:52 -07:00
ericrius1
a1fd867c09 timer fix for reset 2015-09-10 16:46:25 -07:00
ericrius1
510e253575 switching to hosted script for testing 2015-09-10 16:26:57 -07:00
ericrius1
66e4acf651 trying to move to instant reset 2015-09-10 16:21:57 -07:00
Brad Hefta-Gaub
edf889a4c8 Merge pull request #5756 from ericrius1/grabChanges
added lifetime to pointer, default grab behavior now honors objects i…
2015-09-10 09:14:11 -07:00
Brad Hefta-Gaub
0023016447 Merge pull request #5757 from ZappoMan/breakdanceToy
added some debugging to breakdance toy
2015-09-09 14:56:08 -07:00
Brad Hefta-Gaub
62bf6c7c6f added some debugging to breakdance toy 2015-09-09 14:55:39 -07:00
Brad Hefta-Gaub
ec93fc1b05 added some debugging to breakdance toy 2015-09-09 14:24:52 -07:00
ericrius1
5025030726 added lifetime to pointer, default grab behavior now honors objects initial position and rotation 2015-09-09 14:24:30 -07:00
Ryan Downe Karpf
9c71d5fd4d Merge pull request #5750 from ZappoMan/boombox
lower volume
2015-09-09 09:30:29 -07:00
Brad Hefta-Gaub
b0329a58a6 lower volume 2015-09-09 09:29:31 -07:00
Brad Davis
ec566a63fc Merge pull request #5736 from ZappoMan/breakdanceToy
Breakdance Toy - better positioning on puppet
2015-09-08 16:29:29 -07:00
Eric Levin
e9ea42f9ad Merge pull request #5740 from ZappoMan/boombox
add a boom box entity script
2015-09-08 16:16:41 -07:00
Brad Hefta-Gaub
ca6c413221 tweak THE_SONG 2015-09-08 16:02:10 -07:00
Brad Hefta-Gaub
8c4d7b98fd fix header comment 2015-09-08 16:01:07 -07:00
Brad Hefta-Gaub
fe90af0e07 Merge pull request #5737 from ericrius1/grabChanges
hydraGrab is now called handControllerGrab.js now grabs entities based on how they want to be grabbed (th…
2015-09-08 15:59:28 -07:00
Brad Hefta-Gaub
a6395e9438 add a boom box entity script 2015-09-08 14:54:22 -07:00
Brad Hefta-Gaub
57c27f7049 added an example script that detects being touched by avatars hand 2015-09-08 13:06:20 -07:00
ericrius1
7133fc94f5 hydraGrab now grabs entities based on how they want to be grabbed (through setting of userData field with a key called spatialKey 2015-09-08 12:54:02 -07:00
Brad Hefta-Gaub
ebeedb5cde work on moving dancers to center of table if it's present 2015-09-05 22:05:53 -07:00
Brad Hefta-Gaub
10585a1b30 have breakdance entity script use the model and location of the entity 2015-09-04 16:20:12 -07:00
Seth Alves
7d2bdb3689 Merge pull request #5719 from ericrius1/spraypaint
added spraypaint-can entity script
2015-09-04 11:27:52 -07:00
ericrius1
878d42a8d0 added spraypaint can entity script 2015-09-04 10:30:12 -07:00
Brad Hefta-Gaub
895028134b add breakdance game as entity script that works with hydra grab 2015-09-04 09:40:09 -07:00
Brad Davis
380b0cb23c Removing tabs from our javascript and C++ 2015-08-24 15:26:46 -07:00
Zander Otavka
055133b82e Refactor inheritance for billboard overlays.
BillboardOverlays is now Image3DOverlay.  Billboard3DOverlay is the base
class for both Image3DOverlay and Text3DOverlay, and it is
PanelAttachable.
2015-08-04 14:22:21 -07:00
Thijs Wenker
c24c6ad39f Fixes chess game (pieces were dieing as soon as you dropped them) 2015-07-15 19:56:01 +02:00
Seth Alves
d8beed34d6 remove // ? comments 2015-05-20 16:27:28 -07:00
Seth Alves
f9d46b0cb5 interface decides on entityIDs rather than bouncing a temporary id through the entity server 2015-05-19 14:25:23 -07:00
Eric Levin
396325629e added back original light controller script 2015-04-09 10:43:34 -07:00
Eric Levin
c0e7cd1f6a deleted unnecessary line with typo 2015-04-09 09:50:12 -07:00
Eric Levin
b8719f6e5f made new alternative light script 2015-04-08 09:21:24 -07:00
Eric Levin
6de4cec836 made randomly chosen sound persistent between sessions by storing sound index in user data. Now using previous rotation and position to compute offset position 2015-04-08 09:20:29 -07:00
Eric Levin
a16f6c2ce4 remove unnecessary print statement 2015-04-07 19:35:41 -07:00
Eric Levin
9c220b3e9b light container now assigned 1 of 3 random light switch sounds. Also light now changes position based on container's change in position AND rotation. 2015-04-07 19:25:37 -07:00
Eric Levin
7d2fa8d7ce Updated lightcontroller.js logic to find the nearest light when user clicks on light switch entity- this will allow lights to work even when a user has disabled other users from spawning items in his domain 2015-04-07 10:20:19 -07:00
Atlante45
0434b1fd28 Remove unload callback 2015-04-03 16:09:23 +02:00
Eric Levin
fd3fc0acdd added unload function to lightController.js so light is deleted when it's parent entity is 2015-03-31 19:08:30 -07:00
ZappoMan
8e7ead2ead fix locking issue in enter/leave entity scripts 2015-03-26 16:05:31 -07:00
Atlante45
715fe1096f Random but persistant switch sound 2015-03-25 17:33:27 +01:00
Atlante45
19886bd33c Better handling of callback 2015-03-25 16:38:27 +01:00
Atlante45
afb96709f1 Only update userData when light entity is identified 2015-03-25 15:44:37 +01:00
Atlante45
92d3944044 Use preOp function for all common checks/updates 2015-03-25 15:04:06 +01:00
Atlante45
c26f17e16b Update from light properties 2015-03-23 18:36:40 +01:00
Atlante45
ea0f3f05e7 Tune sound down 2015-03-23 17:55:23 +01:00
Atlante45
fdfdba5d2d Couple tweaks 2015-03-23 17:46:57 +01:00
Atlante45
963be820d0 Remove comments 2015-03-23 17:28:11 +01:00
Atlante45
40ed0146e2 Better handling of erased lights 2015-03-23 17:26:43 +01:00
Atlante45
30ea2eb722 Nicer way to update light Properties 2015-03-23 17:20:21 +01:00
Atlante45
efd177d80d Fix property save 2015-03-23 17:06:34 +01:00
Atlante45
66f954142a Fix light multiple creations 2015-03-23 17:06:12 +01:00
Atlante45
5fadcbe7d9 Prints cleanup 2015-03-23 17:05:46 +01:00
Atlante45
6b4845abf3 Some improvements to lightController 2015-03-23 16:47:24 +01:00
Atlante45
34ab470624 lightController first draft 2015-03-20 21:21:18 +01:00
Stephen Birarda
51ad631c54 dynamically grab animation URL as model URL from model 2015-02-19 13:14:46 -08:00
Stephen Birarda
eda7d8ffb1 use new injector APIs in movable script 2015-02-12 11:49:01 -08:00
Stephen Birarda
f9174366dc fixes for new injector API in other scripts 2015-02-11 16:20:48 -08:00
Stephen Birarda
0b10d0d1dc add an example script for the portal 2015-02-06 10:38:23 -08:00
ZappoMan
32ea38b938 added leaveAllEntities support 2014-12-19 11:33:25 -08:00
ZappoMan
97d617bd17 revert some prototype script stuff for now 2014-12-19 11:01:35 -08:00
ZappoMan
d43ec2ee28 revert some prototype script stuff for now 2014-12-19 11:00:41 -08:00
ZappoMan
cfa5e5c61b Merge branch 'master' of https://github.com/highfidelity/hifi into entityScriptsAndEvents
Conflicts:
	libraries/entities-renderer/src/EntityTreeRenderer.cpp
	libraries/entities-renderer/src/EntityTreeRenderer.h
2014-12-19 10:35:18 -08:00
ZappoMan
0d636314ba fixed CR feedback 2014-12-08 16:20:39 -08:00
ZappoMan
0592b74a06 make collision callbacks work 2014-12-08 14:15:03 -08:00
ZappoMan
345735fa8c tweaks 2014-11-23 20:50:39 -08:00
ZappoMan
a95b6dbabd hacking on global functions 2014-11-23 20:36:33 -08:00
ZappoMan
3ee6d6a6db work in making entity script mixable and inheritable 2014-11-23 20:12:52 -08:00
ZappoMan
93755e6506 fix bugs in unloading scripts when changing domains 2014-11-22 11:53:50 -08:00
Philip Rosedale
983975e872 lets you grab an object and turn it near your face to better see it 2014-11-21 20:05:36 -06:00
ZappoMan
3761f24619 fix stand up icon 2014-11-20 16:08:36 -08:00
ZappoMan
ee6516970e first cut at entity script for sitting 2014-11-20 15:37:00 -08:00
ZappoMan
c070835681 use move sounds for turning until further research and foley work 2014-11-18 14:41:56 -08:00
ZappoMan
b53124cba7 tweaks to sound behavior 2014-11-18 14:25:12 -08:00