SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 09/02/2016, 01:21 PM   #221
PeppeAC
Big Clucker
 
Join Date: Jun 2013
Location: Trani, Italy
Posts: 89
Reputation: 192
Default Re: [alpha] Objects Physics - Handle objects collisions and more.

I have released a better version of Pool game:
http://forum.sa-mp.com/showthread.php?t=600413
PeppeAC is offline   Reply With Quote
Old 24/02/2016, 02:20 PM   #222
Speiki2208
Little Clucker
 
Join Date: Jul 2012
Posts: 21
Reputation: 0
Default Re: [alpha] Objects Physics - Handle objects collisions and more.

Very nice plugin, which creates multiple possibilities. Can you add a default support for Incognitos Streamer (for CreateDynamicObject) ?

Edit: Ah, some people already argumented that Streaner would be too slow.
Speiki2208 is offline   Reply With Quote
Old 11/05/2016, 02:43 PM   #223
Max_Andolini
Huge Clucker
 
Max_Andolini's Avatar
 
Join Date: Oct 2013
Posts: 318
Reputation: 37
Default Re: [alpha] Objects Physics - Handle objects collisions and more.

Quote:
Originally Posted by PeppeAC View Post
I have released a better version of Pool game:
http://forum.sa-mp.com/showthread.php?t=600413
Update the ColAndreas

http://forum.sa-mp.com/showthread.php?t=586068

Use foreach instead y_iterate

https://github.com/Misiur/YSI-Includes

And improve the object pyhysics soon
Max_Andolini is online now   Reply With Quote
Old 11/05/2016, 03:55 PM   #224
Crayder
Banned
 
Join Date: Sep 2013
Location: Flames of Hell
Posts: 3,324
Reputation: 652
Default Re: [alpha] Objects Physics - Handle objects collisions and more.

Quote:
Originally Posted by eco1999 View Post
He doesn't need to do anything to update ColAndreas. It's completely on the user's end.

Quote:
Originally Posted by eco1999 View Post
Use foreach instead y_iterate

https://github.com/Misiur/YSI-Includes
I think you meant to say "use y_iterate instead foreach". In my opinion, this too should be up to the user.
@PeppeAC you should just verify either foreach or y_iterate were included. They both have definitions for this. They both have the same exact functions. One is more recently updated than the other, y_iterate.

Quote:
Originally Posted by eco1999 View Post
And improve the object pyhysics soon
How exactly do you think they can be improved?
Crayder is offline   Reply With Quote
Old 11/05/2016, 04:14 PM   #225
Max_Andolini
Huge Clucker
 
Max_Andolini's Avatar
 
Join Date: Oct 2013
Posts: 318
Reputation: 37
Default Re: [alpha] Objects Physics - Handle objects collisions and more.

Quote:
Originally Posted by Crayder View Post
He doesn't need to do anything to update ColAndreas. It's completely on the user's end.



I think you meant to say "use y_iterate instead foreach". In my opinion, this too should be up to the user.
@PeppeAC you should just verify either foreach or y_iterate were included. They both have definitions for this. They both have the same exact functions. One is more recently updated than the other, y_iterate.



How exactly do you think they can be improved?
Bug or something like that.
Max_Andolini is online now   Reply With Quote
Old 14/06/2016, 03:26 PM   #226
ScIrUsna
Huge Clucker
 
Join Date: Mar 2016
Posts: 285
Reputation: 3
Default Re: [alpha] Objects Physics - Handle objects collisions and more.

I get argument warning in this line in this include:

Code:
CA_RayCastLineAngle(x, y, z, x, y, z - 1000.0, unused, unused, bound);
Colandreas inc.:

Code:
native CA_RayCastLineAngle(Float:StartX, Float:StartY, Float:StartZ, Float:EndX, Float:EndY, Float:EndZ, &Float:x, &Float:y, &Float:z, &Float:rx, &Float:ry, &Float:rz);
__________________
zombie server 185.34.52.221:7777
ScIrUsna is offline   Reply With Quote
Old 16/06/2016, 02:33 AM   #227
Max_Andolini
Huge Clucker
 
Max_Andolini's Avatar
 
Join Date: Oct 2013
Posts: 318
Reputation: 37
Default Re: [alpha] Objects Physics - Handle objects collisions and more.

Quote:
Originally Posted by ScIrUsna View Post
I get argument warning in this line in this include:

Code:
CA_RayCastLineAngle(x, y, z, x, y, z - 1000.0, unused, unused, bound);
Colandreas inc.:

Code:
native CA_RayCastLineAngle(Float:StartX, Float:StartY, Float:StartZ, Float:EndX, Float:EndY, Float:EndZ, &Float:x, &Float:y, &Float:z, &Float:rx, &Float:ry, &Float:rz);
+++1
Max_Andolini is online now   Reply With Quote
Old 16/06/2016, 02:49 PM   #228
Greggu
Little Clucker
 
Join Date: Mar 2015
Posts: 29
Reputation: 0
Default Re: [alpha] Objects Physics - Handle objects collisions and more.

Could this include handle objects that's hinged to a surface?
For example, a pole falling over, or do physics apply only to objects that are indipendent?
Greggu is offline   Reply With Quote
Old 17/06/2016, 06:16 AM   #229
Crayder
Banned
 
Join Date: Sep 2013
Location: Flames of Hell
Posts: 3,324
Reputation: 652
Default Re: [alpha] Objects Physics - Handle objects collisions and more.

Quote:
Originally Posted by ScIrUsna View Post
I get argument warning in this line in this include:

Code:
CA_RayCastLineAngle(x, y, z, x, y, z - 1000.0, unused, unused, bound);
Colandreas inc.:

Code:
native CA_RayCastLineAngle(Float:StartX, Float:StartY, Float:StartZ, Float:EndX, Float:EndY, Float:EndZ, &Float:x, &Float:y, &Float:z, &Float:rx, &Float:ry, &Float:rz);
Remove "Angle", leave everything up to it.
Crayder is offline   Reply With Quote
Old 12/07/2016, 02:42 PM   #230
VincenzoDrift
Little Clucker
 
VincenzoDrift's Avatar
 
Join Date: Jun 2014
Posts: 47
Reputation: 3
Default Re: [alpha] Objects Physics - Handle objects collisions and more.

Hi, i'm trying to make a basic drop/loot system with ColAndreas and this include. I used Peppe's example to make a function that creates an onbject to throw. If I use the function CreateObject (native) it works perfectly, but if use the streamer of ColAndreas or Incognito's streamer the object spawns, but it doesn't move. I need to use streamer due to objects limit. Any solution?
Code:
public DropInventoryItem(playerid, modelid)
{
	#define SPEED 	(10.0)
	#define Z_SPEED (4.0)
	#define GRAVITY (13.0)
	
        new Float:posx, Float:posy, Float:posz, Float:posa;		
	GetPlayerPos(playerid, posx, posy, posz);
	GetPlayerFacingAngle(playerid, posa);
		
	Streamer_Update(playerid);
	new obj = CA_CreateDynamicObject_DC(modelid, posx, posy - 0.5 * floatcos(-(posa + 90.0), degrees), posz, 93.7, 120.0, posa + 60.0, -1, -1, -1, 300.0, 300.0);
		
	PHY_InitObject();
	PHY_UseColAndreas(obj, 1);
	PHY_SetObjectVelocity(obj, SPEED * floatsin(-posa, degrees), SPEED * floatcos(-posa, degrees), Z_SPEED);
	PHY_SetObjectFriction(obj, 100);
	PHY_SetObjectGravity(obj, GRAVITY);
	ApplyAnimation(playerid, "GRENADE", "WEAPON_throwu", 3.0, 0, 0, 0, 0, 0);
	return 1;
}
__________________
Sorry for my bad english
VincenzoDrift is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Player Camera Goes Trough Objects And Attached Objects. [WSF]ThA_Devil Scripting Help 1 20/11/2013 02:40 PM
Handle multiple objects. HeLiOn_PrImE Scripting Help 5 08/04/2012 06:32 AM
If I create the objects in virtual worlds that makes room for other objects? tal_peretz Help Archive 8 17/05/2011 01:48 PM
Question regarding objects, collisions Biesmen Help Archive 5 25/03/2011 06:27 AM
Making objects, deleting created objects KnooL Help Archive 1 15/02/2009 08:34 AM


All times are GMT. The time now is 02:59 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.