Special Aircraft Service

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Multi directional hitboxes  (Read 246 times)

0 Members and 1 Guest are viewing this topic.

Dandolo513

  • Modder
  • member
  • Offline Offline
  • Posts: 711
Multi directional hitboxes
« on: June 05, 2023, 01:55:26 PM »

Hallo Gents.
I have noted that my mods don't make flames and smokes if them are hit from the front.
What could be the issue?
Best regards.
Dandolo513
Logged

WxTech

  • Modder
  • member
  • Offline Offline
  • Posts: 6010
Re: Multi directional hitboxes
« Reply #1 on: June 06, 2023, 04:54:44 AM »

A bit more detail would be most helpful.

What objects being hit are at issue?

I will add in the meantime that for effects tied to a hook (such as aircraft engine smoke, or fuel tank leak) have a particular emission direction. If the effect particles are given some EmitVelocity and a narrow EmitTheta range, they will exhibit a noticeably directional preference.

Hit boxes have no directionality; they can be struck from any direction. And by themselves have no control over the direction of effect particle emission. Except in cases where the effect code specifies that the emit direction is to be relative to the direction of travel of a weapon at impact.

Here's an example for cannon hits against objects like buildings, as set in Explosions.class. The code takes the direction of travel for the shell in pitch relative to the Earth's surface and sets the effect particle emission direction to be exactly opposite (directed back toward the gun firing the shell.)

Code: [Select]
o.setAT0(vector3d);
o.set(o.azimut(), o.tangage() + 180.0F, 0.0F);
l.set(point3d, o);
Logged
Great minds discuss ideas. Average minds discuss events. Small minds discuss people. - Hyman Rickover (but probably predating his use.)

Dandolo513

  • Modder
  • member
  • Offline Offline
  • Posts: 711
Re: Multi directional hitboxes
« Reply #2 on: June 06, 2023, 06:12:11 AM »

Hallo WxTech,
i try to give more details.

On my mod i have , lately, noted that if them are shooted from the front direction , they don't make flames or smokes also if the shells hit the tankburns .

To test the colliosion i use this learnt method.
I use a bomber with a rear gun and i shot on the mod under exame parked behind the FC20.

The FC20 looses its wings, wheels or others meshes, but doesn't makes flames or smokes.

If i shot the Cansa from side or rear directions, the tunkburns work.

I hope now i have been more detailed.

Best regards

Dandolo513


Logged

WxTech

  • Modder
  • member
  • Offline Offline
  • Posts: 6010
Re: Multi directional hitboxes
« Reply #3 on: June 06, 2023, 06:42:27 AM »

Depending on the arrangement of the hit boxes and the direction of incoming projectiles, some parts can become at least partially masked by intervening structures. And if there are armored parts in the model, these will afford protection from certain directions.

Note also that there are different effects which are invoked when a plane is on the ground as opposed to when in flight.
Logged
Great minds discuss ideas. Average minds discuss events. Small minds discuss people. - Hyman Rickover (but probably predating his use.)

Dandolo513

  • Modder
  • member
  • Offline Offline
  • Posts: 711
Re: Multi directional hitboxes
« Reply #4 on: June 06, 2023, 06:51:00 AM »

Many thanks for replay and new knowledge.

Best regards.

Dandolo513
Logged
Pages: [1]   Go Up
 

Page created in 0.037 seconds with 25 queries.