mirror of
https://github.com/overte-org/overte.git
synced 2025-04-29 21:22:46 +02:00
collisions
This commit is contained in:
parent
4efe31f158
commit
c98bfca359
1 changed files with 9 additions and 5 deletions
|
@ -41,7 +41,7 @@
|
|||
var ARROW_TIP_OFFSET = 0.32;
|
||||
var ARROW_GRAVITY = {
|
||||
x: 0,
|
||||
y: 0,
|
||||
y: -4.8,
|
||||
z: 0
|
||||
};
|
||||
|
||||
|
@ -285,12 +285,13 @@
|
|||
dimensions: ARROW_DIMENSIONS,
|
||||
position: this.bowProperties.position,
|
||||
collisionsWillMove: false,
|
||||
ignoreForCollisions: false,
|
||||
ignoreForCollisions: true,
|
||||
collisionSoundURL: ARROW_HIT_SOUND_URL,
|
||||
gravity: ARROW_GRAVITY,
|
||||
damping: 0.01,
|
||||
userData: JSON.stringify({
|
||||
grabbableKey: {
|
||||
invertSolidWhileHeld: true,
|
||||
grabbable: false
|
||||
}
|
||||
})
|
||||
|
@ -426,6 +427,8 @@
|
|||
position: Vec3.sum(this.bowProperties.position, TOP_NOTCH_OFFSET),
|
||||
dimensions: LINE_DIMENSIONS,
|
||||
visible: true,
|
||||
ignoreForCollisions: true,
|
||||
collisionsWillMove: false,
|
||||
userData: JSON.stringify({
|
||||
grabbableKey: {
|
||||
grabbable: false
|
||||
|
@ -603,6 +606,7 @@
|
|||
//var forwardVec = Vec3.multiply(handToNotch, handToNotch);
|
||||
var arrowProperties = {
|
||||
// rotation: arrowRotation,
|
||||
ignoreForCollisions: false,
|
||||
collisionsWillMove: true,
|
||||
velocity: forwardVec,
|
||||
// lifetime: 10
|
||||
|
|
Loading…
Reference in a new issue