Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 11/19/25 10:10
MRC.c and WFO
by 11honza11. 11/18/25 15:22
webGL
by Ice2642. 11/17/25 21:27
Camera always moves upwards?
by NeoDumont. 11/17/25 09:56
Future of ZorroHFT
by TipmyPip. 11/16/25 13:52
COT Download with Quandl does not work
by Petra. 11/15/25 09:35
Training with the R bridge does not work
by Petra. 11/15/25 09:31
Zorro 2.70
by jcl. 11/15/25 08:43
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 32,707 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
SkinnyApe, tritom, sheliepaley, Blueguy, blobplayintennis
19179 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Problem with ENABLE_FRICTION #211459
06/16/08 20:02
06/16/08 20:02
Joined: Feb 2008
Posts: 39
R
RicheyMB2 Offline OP
Newbie
RicheyMB2  Offline OP
Newbie
R

Joined: Feb 2008
Posts: 39
I am having a problem with friction events. I have 1 'PhysicsBlock' object in my world and as soon as it rests on the ground the engine crashes out.

The code is as follows, if anyone can tell me where I'm going wrong that would be great!

Code:
function impact_event()
{
	return;	
}

action PhysicsBlock()
{

	phent_settype(me,PH_RIGID, PH_BOX);
	phent_setmass(me, 10, PH_BOX);
	phent_setfriction(me, 90);
	phent_setelasticity(me, 30, 100);
	phent_setdamping(me, 15,15);
	//phent_setgroup(me,5);
	set(me,SHADOW);
	my.emask |= ENABLE_FRICTION;
 	my.event = impact_event();	
	while(1)
	{
		wait(1);	
	}
}
 


Re: Problem with ENABLE_FRICTION [Re: RicheyMB2] #211480
06/16/08 21:26
06/16/08 21:26
Joined: Jun 2008
Posts: 8
Turkiye
L
LaQroix Offline
Newbie
LaQroix  Offline
Newbie
L

Joined: Jun 2008
Posts: 8
Turkiye
Normally u should have a warning but since 7.07 version is buged u are on your own to realize ur mistake. I think ur mistake is at my.event = impact_event line. Probably the correct form is without brackets. -- my.event = impact_event; --

Re: Problem with ENABLE_FRICTION [Re: LaQroix] #211586
06/17/08 12:11
06/17/08 12:11
Joined: Feb 2008
Posts: 39
R
RicheyMB2 Offline OP
Newbie
RicheyMB2  Offline OP
Newbie
R

Joined: Feb 2008
Posts: 39
Thanks.


Moderated by  HeelX, Spirit 

Gamestudio download | 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