mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 09:44:21 +02:00
shoot out of the right end of the gun
This commit is contained in:
parent
c55d627e9b
commit
861aa91572
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@
|
|||
|
||||
//if the trigger value goes below this value, reload the gun.
|
||||
var RELOAD_THRESHOLD = 0.95;
|
||||
var GUN_TIP_FWD_OFFSET = -0.55;
|
||||
var GUN_TIP_FWD_OFFSET = 0.45;
|
||||
var GUN_TIP_UP_OFFSET = 0.040;
|
||||
var GUN_FORCE = 15;
|
||||
var BALL_RESTITUTION = 0.6;
|
||||
|
@ -106,7 +106,7 @@
|
|||
},
|
||||
|
||||
shootBall: function(gunProperties) {
|
||||
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.multiply(forwardVec, GUN_FORCE);
|
||||
var properties = {
|
||||
|
|
Loading…
Reference in a new issue