Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (7th_zorro, Quad, VoroneTZ, 1 invisible), 623 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 5
Page 16 of 16 1 2 14 15 16
Re: newton [Re: ventilator] #206621
05/14/08 17:40
05/14/08 17:40
Joined: Nov 2007
Posts: 1,032
Croatia
croman Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
aah, finally. thanks ventilator for your patience.

do you still intend to create a small car example with Newton?

Last edited by cerberi_croman; 05/14/08 17:50.


Ubi bene, ibi Patria.
Re: newton [Re: croman] #206642
05/14/08 19:02
05/14/08 19:02
Joined: May 2002
Posts: 7,441
ventilator Offline OP
Senior Expert
ventilator  Offline OP
Senior Expert

Joined: May 2002
Posts: 7,441
yes, but probably i will wait for a final newton 2.0.

Re: newton [Re: ventilator] #210646
06/11/08 21:46
06/11/08 21:46
Joined: Sep 2007
Posts: 48
Deutschland
H
HoopyDerFrood Offline
Newbie
HoopyDerFrood  Offline
Newbie
H

Joined: Sep 2007
Posts: 48
Deutschland
Hello I've some problems with playing sounds on collisions.

I have some cans/tins in my world and can shoot them around.
Now I want them to play a sound when they collide with each other or falling on the ground or hitting a wall.

So i wrote in the CollisionEndCallback a command playing a sound.
But now they make this noise all the time they are touching each other or when they are rolling on the floor.

I've read in the Newton manual that it is possible to check in the CollisionProcessCallback how strong an Impact was to play sounds only at heavy impacts.

But I dont know how I can check the impactspeed in the CollisionCallback Function.

Can anyone help me with this problem or did anyone still realised realistic impact sounds?

Greetings RATsoft

Re: newton [Re: HoopyDerFrood] #215184
07/09/08 16:48
07/09/08 16:48
Joined: Jun 2008
Posts: 8
Turkiye
L
LaQroix Offline
Newbie
LaQroix  Offline
Newbie
L

Joined: Jun 2008
Posts: 8
Turkiye
Firstly thanx a lot for this great plug-in ventilator. It really works perfect. Also i wonder if someone succeeded to make a workin car physics. I tried doin somethng but thre is a problem about the tire pin. Also suspensions are like wood blocks. If someone knows how to fix these i will be real glad. Tnx..

Code:

action Newton_Car()
{
	while(!newton_running){wait(1);}
	wait(1);
	NewtonBody* car_body=newton_addentity(me, 200, 2, 2, onforceandtorque);
	
	D3DXMATRIX upside;
	D3DXMatrixTranslation(&upside, 0.0, 0.0, 1.0);
	NewtonJoint* car_joint = NewtonConstraintCreateVehicle(nworld, &upside, car_body);
	//NewtonVehicleSetTireCallback(car_joint, tireUpdate); 
	
	int tireMass;
	float wheelradius;
	tireMass =  20;
	wheelradius = 0.5; 
	
	D3DXMATRIX tire_offset;
	const float tirePin[3];
	tirePin[0]=0.0;
	tirePin[1]=0.0;
	tirePin[2]=1.0;

	//front left
	D3DXMatrixTranslation(&tire_offset, 40.0 * QUANTTOMETER,
				           -65.0 * QUANTTOMETER,
				           -50.0 * QUANTTOMETER);
	NewtonVehicleAddTire(car_joint, &tire_offset, tirePin, tireMass, wheelradius, wheelradius, 300,2000,1.5, NULL, 0);
	
	//front right
	D3DXMatrixTranslation(&tire_offset, -40.0 * QUANTTOMETER,
					    -65.0 * QUANTTOMETER, 
                                            -50.0 * QUANTTOMETER);
	NewtonVehicleAddTire(car_joint, &tire_offset, tirePin, tireMass, wheelradius, wheelradius, 300,2000,1.5, NULL, 1);
	
	//back left
	D3DXMatrixTranslation(&tire_offset, 40.0 * QUANTTOMETER,
				            65.0 * QUANTTOMETER,
					   -50.0 * QUANTTOMETER);
	NewtonVehicleAddTire(car_joint, &tire_offset, tirePin, tireMass, wheelradius, wheelradius, 300,2000,1.5, NULL, 2);
	
	//back right
	D3DXMatrixTranslation(&tire_offset, -40.0 * QUANTTOMETER,
				             65.0 * QUANTTOMETER,
					    -50.0 * QUANTTOMETER);
	NewtonVehicleAddTire(car_joint, &tire_offset, tirePin, tireMass, wheelradius, wheelradius, 3,20000,1.5, NULL, 3);
}



P.S: the 4th parameter at ventilators newton_addentity function defines the newton material for the entity, it aint no mistake

Last edited by LaQroix; 07/09/08 16:51.
Re: newton [Re: LaQroix] #217499
07/23/08 13:06
07/23/08 13:06
Joined: Nov 2007
Posts: 1,032
Croatia
croman Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
hi,

can anyone help me please with this code?
i was wondering why this isn't working?

Code:
while(1)
{
   if(key_e)
   {
      NewtonBodySetVelocity((NewtonBody*)mouse_ent->skill99,vectorf(-200,200,200));
   }
   wait(1);
}


and this works:
Code:
while(1)
{
   if(key_e)
   {
      ent_remove(mouse_ent);
      NewtonDestroyBody(nworld,(NewtonBody*)mouse_ent->skill99);	
   }
   wait(1);
}	



under skill99 i have:

Code:
action blockAct()
{
    var panBlock;

    c_setminmax(me);
    set(my, PASSABLE | INVISIBLE);
    panBlock = my.pan;
    wait(3);
    
    you = ent_create("aim.mdl", vector(my.x, my.y, my.z), NULL);
    ent_remove(my);
    wait(3);
    my = you;
    c_setminmax(me);
    my.skill99 = handle(my);
    my.pan = panBlock;
    wait(3);
    NewtonBody *body = newton_addentity(my, 10, NEWTON_BOX, onforceandtorque);
}




Ubi bene, ibi Patria.
Re: newton [Re: croman] #217507
07/23/08 14:01
07/23/08 14:01
Joined: Nov 2007
Posts: 1,032
Croatia
croman Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
i think i found the problem. when newton entity stops moving it kinda disables herself, why? and after it stops moving i cant apply any force to it.

how can i solve that?



Ubi bene, ibi Patria.
Re: newton [Re: croman] #217515
07/23/08 14:29
07/23/08 14:29
Joined: Nov 2007
Posts: 1,032
Croatia
croman Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
i've found it. auto freezing and unfreeze functions. anyway thanks laugh



Ubi bene, ibi Patria.
Re: newton [Re: ventilator] #217605
07/24/08 00:20
07/24/08 00:20
Joined: Jul 2008
Posts: 1
austrlia
H
hemahoney Offline
Guest
hemahoney  Offline
Guest
H

Joined: Jul 2008
Posts: 1
austrlia
EDIT: SPAM

Last edited by Lukas; 07/24/08 13:06. Reason: Spam
Re: newton [Re: hemahoney] #217640
07/24/08 08:05
07/24/08 08:05
Joined: Nov 2007
Posts: 1,032
Croatia
croman Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
this is definitely the WRONG FORUM for that kind of question.



Ubi bene, ibi Patria.
Re: newton [Re: croman] #218651
07/29/08 18:04
07/29/08 18:04
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline

Serious User
VeT  Offline

Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
i dont think that's a spam: some time ago i spent a lot of time because i also forget about freezing smile


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Page 16 of 16 1 2 14 15 16

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1