1 registered members (TedMar),
1,420
guests, and 3
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: how to create a laser beam
[Re: pjotr987]
#410671
11/07/12 00:36
11/07/12 00:36
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
You can measure the distance with c_trace and create a beam with a particle that got its BEAM flag set. You then need done additional particle at the end of the beam and increase its size with growing distance.
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: how to create a laser beam
[Re: Uhrwerk]
#410812
11/09/12 13:05
11/09/12 13:05
|
Joined: Jul 2011
Posts: 69
pjotr987
OP
Junior Member
|
OP
Junior Member
Joined: Jul 2011
Posts: 69
|
is there any piece of code that throws a spot (like a spot of a laser) on hit surface?. this spot radius should decrease with the increasing distance of the hit area. like a spot of a torch, that is big if it hits a close wall and gets smaller if the wall is more distant. somehow i dont know how to start. any help will be approciated thanks in advance
|
|
|
Re: how to create a laser beam
[Re: pjotr987]
#411044
11/12/12 14:22
11/12/12 14:22
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
You cannot use a fixed skalar where an angle is expected. The functions signature is vec_to_angle(ANGLE* ang, VECTOR* dir).
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: how to create a laser beam
[Re: Uhrwerk]
#411051
11/12/12 16:05
11/12/12 16:05
|
Joined: Oct 2011
Posts: 1,082 Germany
Ch40zzC0d3r
Serious User
|
Serious User
Joined: Oct 2011
Posts: 1,082
Germany
|
lol, Change the vel_x, y, z...
Last edited by Ch40zzC0d3r; 11/12/12 16:05.
|
|
|
|