This commit is contained in:
James Pollack 2015-09-30 10:58:21 -07:00
parent 99fbed6143
commit ecad7f34f6

View file

@ -86,21 +86,20 @@
}, },
shootBall: function(gunProperties, triggerValue) { shootBall: function(gunProperties, triggerValue) {
print('SHOOT BALL');
var forwardVec = Quat.getFront(Quat.multiply(gunProperties.rotation, Quat.fromPitchYawRollDegrees(0, 90, 0))); var forwardVec = Quat.getFront(Quat.multiply(gunProperties.rotation, Quat.fromPitchYawRollDegrees(0, 90, 0)));
forwardVec = Vec3.normalize(forwardVec); // forwardVec = Vec3.normalize(forwardVec);
var properties = { var properties = {
type: 'Sphere', type: 'Sphere',
color: { color: {
red: 0, red: 255,
green: 0, green: 255,
blue: 255 blue: 255
}, },
dimensions: { dimensions: {
x: 0.04, x: 0.02,
y: 0.04, y: 0.02,
z: 0.04 z: 0.02
}, },
linearDamping: 0.2, linearDamping: 0.2,
gravity: { gravity: {