Outerra forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Outerra Tech Demo download. Help with graphics driver issues

Pages: 1 2 [3] 4 5

Author Topic: Methods  (Read 20488 times)

SteelRat

  • Sr. Member
  • ****
  • Posts: 380
  • newbie
Re: Methods
« Reply #30 on: January 11, 2016, 10:19:13 am »

Another geom object and a bone id to attach to.
Thanks!

PS
detach?

PS_2
You can use the method attach_to() to the geometry of the different objects?



Last created box disappears.
If you apply
Code: [Select]
var pos = this.geom.get_pos();
var rot = this.geom.get_rot();
var dist = 6;
var box;
var dirs = [0, 45, 90, 135, 180, 225, 270, 315];
for (var i = 0; i < dirs.length; i++) {
box = $world.create_instance("PytonPago/AmmoBox_Wood_23x152mm_63pc/AmmoBox_Wood_23x152mm_63pc_BZT", relative_pos(pos, rot, dist, dirs[i]), rot, false);
}
box.geom = box.get_geomob(0);
box.geom.attach_to(this.geom, this.TurVal);
« Last Edit: January 11, 2016, 04:45:46 pm by SteelRat »
Logged

SteelRat

  • Sr. Member
  • ****
  • Posts: 380
  • newbie
Re: Methods
« Reply #31 on: January 12, 2016, 03:48:47 pm »

Hi cameni!

I already broke my forehead!)
Can it is necessary for more than two arguments?



« Last Edit: January 12, 2016, 04:04:59 pm by SteelRat »
Logged

angrypig

  • Outerra Administrator
  • Sr. Member
  • *****
  • Posts: 454
    • http://outerra.com
Re: Methods
« Reply #32 on: January 13, 2016, 03:47:49 am »

If you send us FBX files for both models I could look into it.
Logged

SteelRat

  • Sr. Member
  • ****
  • Posts: 380
  • newbie
Re: Methods
« Reply #33 on: January 13, 2016, 08:02:21 am »

If you send us FBX files for both models I could look into it.

These models are created PytonPago, I asked him to send you the source models.
Ural-4320-31_6x6_CHASIS
AmmoBox_Wood_23x152mm_63pc

ZS-23-2
https://onedrive.live.com/redir?resid=BA7B7E2655BF556D!6930&authkey=!ALpuEGhfxsU0JwI&ithint=file%2czip
« Last Edit: January 13, 2016, 08:06:40 am by SteelRat »
Logged

SteelRat

  • Sr. Member
  • ****
  • Posts: 380
  • newbie
Re: Methods
« Reply #34 on: January 13, 2016, 12:20:52 pm »

What I have done here is not so! I do not understand!)

Logged

PytonPago

  • Hero Member
  • *****
  • Posts: 2251
  • It´s way too complex, dont let me try to explain !
Re: Methods
« Reply #35 on: January 16, 2016, 03:47:09 pm »

If you send us FBX files for both models I could look into it.

 ... damn, havent seen this topic ... here are the FBXs AngryPig :

https://drive.google.com/file/d/0B3ZscF0ox2AGQVAyQUlFM2tURnc/view?usp=sharing

Logged
We are still undeveloped as long as we don´t realize, that all our science is still descriptive, and than beyond that description lies a whole new world we just haven´t even started to fully understand.

SteelRat

  • Sr. Member
  • ****
  • Posts: 380
  • newbie
Re: Methods
« Reply #36 on: January 25, 2016, 04:09:26 pm »

Hi cameni!

Code: [Select]
this.geom.attach_to()
arguments?

I understood the reason for the failures in the application of this method.
Cause I do not think a lot of strange, but do not judge me).

To object to which the method of attach_to() , has taken the correct position relative to the parent, the slave must be created on the same coordinates as the parent object.

Logged

SteelRat

  • Sr. Member
  • ****
  • Posts: 380
  • newbie
Re: Methods
« Reply #37 on: January 26, 2016, 12:19:21 pm »

Hi cameni!

RU
Как я могу сделать проверку, управляет юзер объектом или нет?
Мне это нужно для того, что бы блокировать не востребованную логику в функции "update_frame()".

Translate
How can I do a background check, the user operates the object or not?
I need it in order to block that are not in demand in the logic function "update_frame ()".
Logged

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6491
  • Pegs is clever, but tae hain’t a touch sentimental
    • outerra.com
Re: Methods
« Reply #38 on: January 27, 2016, 03:35:02 am »

Hmm probably via get_camera_mode(). 0 is FPS mode, 1/2/3 TPS modes, and without user it should be a higher number.
Logged

SteelRat

  • Sr. Member
  • ****
  • Posts: 380
  • newbie
Re: Methods
« Reply #39 on: January 27, 2016, 08:59:42 am »

Thanks!
Logged

SteelRat

  • Sr. Member
  • ****
  • Posts: 380
  • newbie
Re: Methods
« Reply #40 on: January 27, 2016, 12:46:54 pm »

Hmm probably via get_camera_mode(). 0 is FPS mode, 1/2/3 TPS modes, and without user it should be a higher number.

PS
It works great. Thanks again.
Logged

SteelRat

  • Sr. Member
  • ****
  • Posts: 380
  • newbie
Re: Methods
« Reply #41 on: January 30, 2016, 10:46:15 am »

Hi cameni!

What is it?
Code: [Select]
// this.get_inv_mass()

{
"$ret":0.01666666753590107,
"inv_inertia":{
"col":[
{"x":5795.962890625,"y":1.54741370677948,"z":-54203176},
{"x":1.3173075914382935,"y":0.000012145993423473556,"z":1.284999966621399},
{"x":0,"y":0,"z":0}
]
}
}
Logged

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6491
  • Pegs is clever, but tae hain’t a touch sentimental
    • outerra.com
Re: Methods
« Reply #42 on: January 30, 2016, 12:41:57 pm »

1/mass and inverse inertia tensor as returned from Bullet physics.
Logged

SteelRat

  • Sr. Member
  • ****
  • Posts: 380
  • newbie
Re: Methods
« Reply #43 on: January 30, 2016, 05:48:36 pm »

1/mass and inverse inertia tensor as returned from Bullet physics.

RU
Со второй частью я ещё не скоро выпью на брудершафт :facepalm: :)
https://en.wikipedia.org/wiki/Tensor

Thanks!
Logged

SteelRat

  • Sr. Member
  • ****
  • Posts: 380
  • newbie
Re: Methods
« Reply #44 on: February 03, 2016, 09:56:18 am »

Hi cameni!

RU:
После применения к созданному объекту метода "attach_to()", на позиции создания объекта остаётся "Коллизия" этого объекта.
Я не придавал этому значения пока не столкнулся со странным(избирательным) поведением "Коллизии".
На данный момент у меня есть возможность решить эту проблему?

Translate:
After applying to the created object method "attach_to()", the position of the object creation remains a "Сollision" of the object.
I did not attach any importance to this until he encountered a strange(electoral) behavior "Collision".
At the moment, I have the opportunity to solve this problem?



PS
I do not understand what's going on! :)
http://forum.outerra.com/index.php?topic=3360.msg39958#msg39958
« Last Edit: February 03, 2016, 10:40:10 am by SteelRat »
Logged
Pages: 1 2 [3] 4 5