[behavior] rex_LJpotential (attracting or rejecting objects)

Post your completed addons to share with the community

Post » Sun Aug 24, 2014 2:41 am

Savvy001 wrote:Ai for cars demo 2!!!
Epic.
Could u please support us with the capx

I could try, could you describe the environment of your race game?
B
108
S
26
G
271
Posts: 4,471
Reputation: 151,777

Post » Mon Aug 25, 2014 3:15 am

@Kyatric

Please help me move this topic to "Completed Addons" section.
B
108
S
26
G
271
Posts: 4,471
Reputation: 151,777

Post » Mon Aug 25, 2014 4:15 am

Done.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
291
S
114
G
95
Posts: 7,290
Reputation: 70,138

Post » Mon Aug 25, 2014 9:26 am

Wow! I was trying to achieve this kind of behaviour with events, but now you created this great plugin.
B
45
S
11
G
4
Posts: 517
Reputation: 7,393

Post » Mon Aug 25, 2014 1:44 pm

The environment i intend to create is exactly what u are showing in your ai for racecars demo 2.
That specific capx u already have would be great to have as a basis for a racing game.
B
59
S
21
G
14
Posts: 779
Reputation: 13,927

Post » Mon Aug 25, 2014 1:48 pm

Savvy001 wrote:The environment i intend to create is exactly what u are showing in your ai for racecars demo 2.
That specific capx u already have would be great to have as a basis for a racing game.

All sample capx files are included in document link, feel free to use them.
B
108
S
26
G
271
Posts: 4,471
Reputation: 151,777

Post » Mon Aug 25, 2014 11:05 pm

Thats great Rexrainbow!
Thank u very much.
B
59
S
21
G
14
Posts: 779
Reputation: 13,927

Post » Mon Sep 01, 2014 3:03 am

Awesome plugin rex as usual.

Question: In the "crowd" demo for example, sometimes the little boxes wiggle really quickly instead of following a smooth arc. Which of the settings would i need to play with to smooth our their movement? I'm not sure what the parts of the equation mean in relationship to how they move.

thanks
B
87
S
44
G
16
Posts: 1,005
Reputation: 17,938

Post » Mon Sep 01, 2014 3:11 am

@justifun

This behavior only provide a "leading angle", user need to use this angle case by case.
For example, car AI demos use this "leading angle" to simulate turn left/turn right. Crowd or rocket demos use this "leading angle" to rotate the angle.

The parameters A,n,B,m will affect the result of "leading angle".
B
108
S
26
G
271
Posts: 4,471
Reputation: 151,777

Post » Mon Sep 01, 2014 9:40 pm

@rexrainbow - Can you explain how adjusting those parameters will change how the objects react?

I understand "attracting/detracting magnitute - the strength that the objects gets pulled towards or away from the source object, but what does Attracting/Detracting Declined mean?

thx
B
87
S
44
G
16
Posts: 1,005
Reputation: 17,938

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 2 guests