[behavior] rex_LJpotential (attracting or rejecting objects)

Post your completed addons to share with the community

Post » Sun Aug 17, 2014 5:01 pm

See this demo first.
- the rocket at down-right side will try to hit the ship at top-left side, and it will dodge the rocks.

Document, plugin and sample capx included.
It uses Lennard-Jones potential formula - ( (A/r^n)-(B/r^m) ) for attracting or rejecting objects, like the demo above.


Here is another simple way to make car AI without any 3rd party plugins -
Demo ( capx ),
Demo2 ( capx )

----
Another demo - AI of Race car

AI of Race car v2
It seems that using attracting only and put them carefully could help race car moving smoothly. Some attracting point does not put well in this demo.
Add rejecting might be more smoothly I thought.
Last edited by rexrainbow on Sat Mar 05, 2016 4:45 pm, edited 6 times in total.
B
110
S
28
G
280
Posts: 4,488
Reputation: 156,568

Post » Sun Aug 17, 2014 11:15 pm

Looks impressive.. :)

I'm sure people will find great ways of using this..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Aug 18, 2014 12:44 am

:o :!:
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
93
S
30
G
22
Posts: 1,987
Reputation: 20,203

Post » Mon Aug 18, 2014 11:03 am

Nice rex
B
15
S
3
G
3
Posts: 93
Reputation: 1,466

Post » Mon Aug 18, 2014 4:57 pm

Another demo - AI of Race car
B
110
S
28
G
280
Posts: 4,488
Reputation: 156,568

Post » Mon Aug 18, 2014 5:34 pm

Very impressive as always.
B
43
S
23
G
21
Posts: 735
Reputation: 12,132

Post » Mon Aug 18, 2014 10:03 pm

@rexrainbow Thank you, thank you, thank you!!!
B
11
S
3
G
1
Posts: 26
Reputation: 1,288

Post » Tue Aug 19, 2014 5:06 pm

AI of Race car v2
It seems that using attracting only and put them carefully could help race car moving smoothly. Some attracting point does not put well in this demo.
Add rejecting might be more smoothly I thought.
Last edited by rexrainbow on Mon Feb 16, 2015 11:49 pm, edited 1 time in total.
B
110
S
28
G
280
Posts: 4,488
Reputation: 156,568

Post » Sat Aug 23, 2014 10:03 am

@rexrainbow

great work as always :) thanks
B
51
S
16
G
9
Posts: 1,098
Reputation: 11,252

Post » Sat Aug 23, 2014 9:47 pm

Ai for cars demo 2!!!
Epic.
Could u please support us with the capx
B
59
S
21
G
14
Posts: 779
Reputation: 13,927

Next

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 3 guests