what replaces EntityPhysicBody()?

Everything related to 3D programming
Damion12
User
User
Posts: 81
Joined: Tue Oct 30, 2012 1:39 am

what replaces EntityPhysicBody()?

Post by Damion12 »

I have a small program that gets compiler warnings of a depreciated function EntityPhysicBody(). What replaces it? The only reference I can find in help is that it was added to the engine3D.
User avatar
Demivec
Addict
Addict
Posts: 4090
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: what replaces EntityPhysicBody()?

Post by Demivec »

It was replaced by CreateEntityBody() in Version 5.40 LTS.

CreateEntityBody() adds a lot more optional parameters but you should be able to simply rename the function because the first two parameters are the same.
Damion12
User
User
Posts: 81
Joined: Tue Oct 30, 2012 1:39 am

Re: what replaces EntityPhysicBody()?

Post by Damion12 »

Thank you.
Too bad they didn't leave the depreciated entries in help, with "here's what you should use instead..."

Much appreciated.
User avatar
Demivec
Addict
Addict
Posts: 4090
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: what replaces EntityPhysicBody()?

Post by Demivec »

There is an entry in the History list where the change was made.

It states "- Changed: EntityPhysicBody() to CreateEntityBody()".
Damion12
User
User
Posts: 81
Joined: Tue Oct 30, 2012 1:39 am

Re: what replaces EntityPhysicBody()?

Post by Damion12 »

Demivec wrote:There is an entry in the History list where the change was made.

It states "- Changed: EntityPhysicBody() to CreateEntityBody()".
Silly me -- I looked in "Change" to find out what had changed with it...
Thanks.
Post Reply