mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 20:23:06 +02:00
moar
This commit is contained in:
parent
99fbed6143
commit
ecad7f34f6
1 changed files with 6 additions and 7 deletions
|
@ -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: {
|
||||||
|
|
Loading…
Reference in a new issue